[PATCH] -U option as the opposite of -u

Matthias Andree matthias.andree at gmx.de
Wed Jan 29 01:30:22 CET 2003


Chris Wilkes <cwilkes-bf at ladro.com> writes:

> Hi,
>
>   Many thanks to David Relson who told me about this list and helped me
> through some of the code.
>   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:
> 	run_type = RUN_UPDATE_REVERSED

Well, as much as a function like this is desirable, this scheme is
slightly inaccurate, regretfully. Registering other mails between doing
-u and -U might cause de-registration from the wrong data base.

The simple fix to this is: extract the X-Bogosity header. If "Yes",
unregister from spamlist, If "No", unregister from goodlist, If
"Unknown", ignore the message.

This nit aside, your contribution is much appreciated.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list