[PATCH] -U option as the opposite of -u
cwilkes-bf at ladro.com
Tue Jan 28 15:07:16 EST 2003
On Tue, Jan 28, 2003 at 12:52:30PM -0700, Matt Armstrong wrote:
> Chris Wilkes <cwilkes-bf at ladro.com> writes:
> > I use bogofilter's -u switch to automatically register mail whenever
> > it comes in. Once in a while an email is mislabeled and I would like to
> > undo it. I would like to have BF be smart enough to figure out if it
> > should run the -S or the -N switch based on its current value.
> > So I put in a patch to BF 0.10.1.2 that gives a -U switch. In a
> > nutshell I've added:
> I think this might compound the danger of -u. Scenario:
> You bind a "bogofilter got it wrong" key to your mailer to pipe the
> message through bogofilter -U.
> You get 5 similar spams that bogofilter says are not spam. You pipe
> the first three through and bogofilter now starts calling it SPAM.
> The second two your pipe through -U cause bogofilter to doubly count
> it as non-SPAM.
Hmm. Didn't think of that as I'm always reading my email and thus I
wouldn't let 5 spams build up :)
I'll have to start work again on my bogofilter wrapper that keeps an MD5
hash of emails sent through it and the spam status of the email at that
time. Then when something like the above happens it will know to look
to the status of that email when it went through the system to figure
out how it should be re-classified.
Note (as this came up before): the MD5 hash is just for BF to keep track
of your individual emails and not to be used in the razor-like fashion
of storaging md5 hashes of all spams. You'll have to bounce (not
forward) your emails to this filter so that the body remains the same.
Thanks for the heads up on this case.
More information about the Bogofilter-dev