mailbox classificataion [was: announce 0.10.1]

David Relson relson at osagesoftware.com
Thu Jan 23 13:32:45 CET 2003


At 07:10 AM 1/23/03, Boris 'pi' Piwinger wrote:

>David Relson wrote:
>
> > "-v" turns on level 1 printing of information.  It's separate from whether
> > you are registering or classifying messages.
> >
> > All the options for registering mail, i.e snSN, work fine with a
> > mailbox.  Adding "-v" prints a summary line of the form "# 123 messages,
> > 4567 words".
> >
> > If you don't have snSN then you are classifying a _single_ message.  Don't
> > use a mailbox.
>
>It would be nice (more consistent) if -v would also work on
>mboxes.
>
>pi

pi,

"-v" is a printing option that is secondary to what bogofilter really does 
which is (1) _register_ words in a wordlist so that (2) it can _classify_ 
an email message using the wordlists.  bogofilter can both classify and 
register and doesn't have to have the "-v" option.  I think what you're 
asking for is to have bogofilter classify a mailbox of messages.

Suppose we did allow "bogofilter < mailbox".  What would the output be?

With no options, bogofilter classifies a message and provides an exitcode 
of 0 or 1 as its classification.  I don't see an extension of this to a 
mailbox.

If you used "-v" and bogofilter could classify a mailbox, the output would 
be a series of X-Bogosity lines like:

X-Bogosity: Yes, tests=bogofilter, spamicity-0.95
X-Bogosity: No, tests=bogofilter, spamicity-0.15
X-Bogosity: No, tests=bogofilter, spamicity-0.03
X-Bogosity: Yes, tests=bogofilter, spamicity-0.95

A series of status lines with no other information is not too useful.

The last way to operate is to use "-p" with the mailbox.  Using 
passthrough, each message header would have an X-Bogosity line added to 
it.  Now you have an output that's an expanded mailbox.  You still need to 
filter/separate the messages into appropriate files/folders, don't 
you?  So, why not use formail/procmail/milter to split the mailbox and give 
bogofilter individual messages?

Stated more briefly, the problem with classifying a whole mailbox is in 
returning information about individual messages.  I lack a solution.  What 
is yours?

David








More information about the Bogofilter mailing list