Bogofilter and reclassifying
Stroller
Linux.Luser at myrealbox.com
Sat Dec 6 14:58:03 CET 2003
On Dec 5, 2003, at 7:05 pm, Stroller wrote:
>
>> Second, since
>> bogofilter doesn't presently care whether its running with combined or
>> separate wordlists, those checks aren't necessary. Of course the
>> separate wordlist code is scheduled to be deprecated in 0.16.0 and
>> removed in 0.17.0 so using a single, combined wordlist is the right
>> thing to do.
>
> Ah, yes. This is because my original intention was to have the `find
> -newer`called upon ~/.bogofilter/wordlist.db; I don't really think the
> bogoupdate.lastrun touchfile should be necessary, but I don't know how
> to avoid it. Bogofilter will change the file-modification date as soon
> as it parses the first email, so the only way would be to load the
> last modification time of wordlist.db when the script starts up, store
> it as a variable & have find compare with that, but I don't really
> know how to do that.
Insomnia taught me how. I hope others may find this useful - there's
more comments than code in the attached now, but that's the way I like
it. Many thanks to M. Leo Cooper for releasing his Advanced bash
Scripting Guide under a GNU license.
Stroller.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bogo-update.sh
Type: application/octet-stream
Size: 2838 bytes
Desc: not available
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20031206/39b5c6a2/attachment.obj>
More information about the Bogofilter
mailing list