Theo Van Dinter wrote:
> On Tue, Jan 20, 2009 at 04:49:12PM +0100, Matus UHLAR - fantomas wrote:
>   
>> Why does it update the journal? Why does it try to open journal in R/W mode?
>>     
>
> $ man sa-learn
> [...]
>        bayes_journal
>            While SpamAssassin is scanning mails, it needs to track which 
> tokens it uses in its cal-
>            culations.  To avoid the contention of having each SpamAssassin 
> process attempting to
>            gain write access to the Bayes DB, the token timestamps are 
> written to a ’journal’ file
>            which will later (either automatically or via "sa-learn --sync") 
> be used to synchronize
>            the Bayes DB.
>
> In other words, the journal isn't just for learning.
>
>   
Yes, more specifically, it's mostly going to be updating the "atime", or
time of last access, records for tokens. This time is used by the expiry
process to drop the least recently used tokens.

Reply via email to