unregistration options
David Relson
relson at osagesoftware.com
Fri Feb 28 16:05:28 CET 2003
Hi Simon,
Currently '-s' and '-n' can be considered as performing single actions,
i.e. register, while '-S' and '-N' perform dual actions, unregister and
register. Bogofilter's option scanner remembers the last option seen, so
'-SnNs' is the same as '-s'. The changed code has each option tied to a
single option and, as scanning progresses, each new option will turn off
any conflicting preceding options, i.e. both '-S -N' and '-n -N' mean '-N'.
Implementing backward compatibility in the manner you suggest is
unsatisfactory. If action modifiers were to be implemented, it'd be better
to use a new option letter rather than reuse an existing letter. "-U" has
been suggested by several people as an option that could be used with '-S'
or '-N' and would mean "unregister only".
Essentially the two leading ideas for registration options are:
1 - have '-s', '-n', '-N', and '-S' each correspond to a single action,
with combinations allowed, and each new option turns off preceding
conflicting option.
2 - have '-s', '-n', '-N', and '-S' retain their current meanings with new
flag '-U' usable only with '-S' and '-N' and meaning "unregister only".
Option 1 has received the most votes in the polls of Feb 6 and of Feb 27.
David
At 04:12 AM 2/28/03, Simon Huggins wrote:
>Hi bogofilter,
>
>On Thu, Feb 27, 2003 at 06:47:46PM -0500, Greg Louis wrote:
> > If you're reopening the poll I vote you proceed as you had planned: -S
> > and -N unregister, and -Sn and -Ns do the old thing. With respect and
> > sympathy for Dan's position, I still feel this approach is clean and
> > elegant and will save more headaches than it causes.
>
>Is there any good reason we can't keep backwards compatibility and make
>the new thing use the new options?
>
>i.e. -S moves from non-spam to spam
> -Sn unregisters from spam list
> (i.e. move from non-spam to spam and add to non-spam list)
>
>Surely it's more useful to have the -S and -N options to correct
>bogofilter's perception of a mail than these new options? Or did I miss
>something obvious?
>
>Simon.
>
>--
>oOoOo "And 1.1.81 is officially BugFree(tm), so if you receive oOoOo
> oOoOo any bug-reports on it, you know they are just evil lies." oOoOo
> oOoOo - Linus Torvalds oOoOo
> htag.pl 0.0.22 ::::::: http://www.earth.li/~huggie/
>
>---------------------------------------------------------------------
>FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
>To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
>For summary digest subscription: bogofilter-digest-subscribe at aotto.com
>For more commands, e-mail: bogofilter-help at aotto.com
More information about the Bogofilter
mailing list