[spambayes-dev] RE: [Spambayes] spambayes-1.0a6 bug: sb_mboxtrain.py fails to mark mail data as X-Spambayes-Trained

Tony Meyer tameyer at ihug.co.nz
Mon Oct 13 00:22:59 EDT 2003


> I have chosen a two-message mbox folder called libtool as an 
> example, but I get the same result with larger folders as well.
[...]
> and no extra mail header line referring to X-Spambayes-Trained

I believe if you add
"""
            if is_spam:
                spamtxt = options["Headers", "header_spam_string"]
            else:
                spamtxt = options["Headers", "header_ham_string"]
            msg.add_header(options["Headers", "trained_header_name"],
spamtxt)
"""
At line 160 of sb_mboxtrain.py, this will have the desired effect.

Spambayes-dev people - is this a bug?  The maildir_train() function adds
this header, but the mbox_train() function doesn't, although it looks like
it is meant to.

=Tony Meyer




More information about the spambayes-dev mailing list