Bogofilter - write_log_message
David Relson
relson at osagesoftware.com
Mon Sep 22 00:00:01 CEST 2003
On Sun, 21 Sep 2003 23:41:53 +0200
Stefan Bellon <sbellon at sbellon.de> wrote:
> Hi David!
>
> I think -pluM together results in an undesired behaviour concerning
> write_log_message() and format_log_header(). You get messages like the
> following in syslog:
>
> 21 Sep 20:06:13 006 X-Bogosity: Yes, spamicity=1.000000,
> version=0.15.4-sb1, register-s, 153 words, 3 messages
> 21 Sep 20:15:02 006 X-Bogosity: No, spamicity=0.000000,
> version=0.15.4-sb1, register-n, 295 words, 2 messages
> 21 Sep 21:01:16 006 X-Bogosity: Yes, spamicity=1.000000,
> version=0.15.4-sb1, register-s, 119 words, 11 messages
> 21 Sep 21:52:38 006 X-Bogosity: No, spamicity=0.000000,
> version=0.15.4-sb1, register-n, 154 words, 7 messages
>
> That is, first you get a "Yes/No" with the spamicity value, but then
> you see that multiple mails have been processed. I think, in
> mbox_mode, the syslog message should look different, shouldn't it?
>
> Greetings,
>
> Stefan.
Stefan,
Logging is intended as a summary record of what's been done.
"register-X, Y words, Z messages" makes sense when registering messages.
"X-Bogosity: Y/N, spamicity=S,..." makes sense when scoring a single
message.
These are the two basic messages, and they are combined when using "-u
-l".
I'd be inclined to treat a mailbox as a bunch of single messages and log
for each one, i.e. treat the following as comparable:
bogofilter -pulM <mbox
cat mbox | formail -s bogofilter -pulM
What do you think is appropriate when scoring a bunch of messages?
David
P.S. The proper place for this is on the bogofilter mailing list, and I
have CC'd this to the list.
More information about the Bogofilter
mailing list