[PATCH] logging behavior

David Relson relson at osagesoftware.com
Mon Sep 22 21:16:29 CEST 2003


On Mon, 22 Sep 2003 21:03:45 +0200
Stefan Bellon <sbellon at sbellon.de> wrote:

> On 22 Sep, you wrote:
> 
> > Try this out and let me know if it appears reasonable.
> 
> Yes, it works and now the output looks like this:
> 
> 22 Sep 20:57:22 006 X-Bogosity: Yes, spamicity=0.999936,
> version=0.15.4, register-s, 119 words, 1 messages
> 22 Sep 20:57:27 006 X-Bogosity: Yes, spamicity=1.000000,
> version=0.15.4, register-s, 263 words, 1 messages
> 22 Sep 20:57:28 006 X-Bogosity: No, spamicity=0.277134,
> version=0.15.4, register-n, 137 words, 1 messages
> 22 Sep 20:57:47 006 X-Bogosity: No, spamicity=0.000000,
> version=0.15.4, register-n, 1401 words, 1 messages
> 22 Sep 20:57:53 006 X-Bogosity: Yes, spamicity=1.000000,
> version=0.15.4, register-s, 272 words, 1 messages
> 22 Sep 20:57:54 006 X-Bogosity: No, spamicity=0.001734,
> version=0.15.4, register-n, 100 words, 1 messages
> 22 Sep 20:57:55 006 X-Bogosity: No, spamicity=0.261194,
> version=0.15.4, register-n, 56 words, 1 messages
> 
> However, even better would be this, wouldn't it?
> 
> 22 Sep 20:57:22 006 X-Bogosity: Yes, spamicity=0.999936,
> version=0.15.4 22 Sep 20:57:27 006 X-Bogosity: Yes,
> spamicity=1.000000, version=0.15.4 22 Sep 20:57:28 006 X-Bogosity: No,
> spamicity=0.277134, version=0.15.4 22 Sep 20:57:47 006 X-Bogosity: No,
> spamicity=0.000000, version=0.15.4 22 Sep 20:57:53 006 X-Bogosity:
> Yes, spamicity=1.000000, version=0.15.4 22 Sep 20:57:54 006
> X-Bogosity: No, spamicity=0.001734, version=0.15.4 22 Sep 20:57:55 006
> X-Bogosity: No, spamicity=0.261194, version=0.15.4 22 Sep 20:57:56 006
> register-n, 1694 words, 4 messages 22 Sep 20:57:58 006 register-s, 654
> words, 3 messages
> 
> What do you think?
> 
> Greetings,
> 
> Stefan.

Using your method, N+l lines are logged for a mailbox with N messages. 
In the minimal case (when '-M' is used for a single message), we have
one email generating two log messages.  This way, "cat mbox | bogofilter
-luM" is comparable to "cat mbox | formail -e bogofilter -lu".  Let's
leave it as it is now.




More information about the Bogofilter mailing list