<<< Date Index >>>     <<< Thread Index >>>

Re: alternates (was: What should go into 1.5.7?)



On Fri, Jan 28, 2005 at 10:26:36PM +0100, Alain Bench wrote:
>     Hum... We ideally need to be able to add and remove regexes in both
> positive and negative matching regex lists. This would take 4 commands.
> What about 2, like this:
> 
> ==== proposed "alternates" behaviour ====
> While reading muttrc...
>   alternates "regex" command:
>     if "regex" string-matches one from unalternates list
>       remove "regex" from unalternates list
>     else
>       add "regex" to alternates list
>   unalternates "regex" command:
>     if "regex" string-matches one from alternates list
>       remove "regex" from alternates list
>     else
>       add "regex" to unalternates list
> While reading a message...
>   First, mutt thinks the message is from you if it matches any of the 
> "alternates" REs.
>   But mutt changes his dicision if the message matches any of the 
> "unalternates" REs.
> 
>     Of course a "*" wipes the list (which one?), and we'll need a
> <help>-like screen to inspect current content of both lists.

Except for the <help>-like screen, your idea is exactly the same as mine.
I sent this idea to mutt-dev, but the message was rejected somewhere
between me and you. If you are interested, see
        http://www.momonga-linux.org/~tamo/no_notalt.diff.gz
I haven't tested this patch, but this explains how we can
implement it.

Oh I remember that DGC tried to implement "unnospam" command.
But now, we are happy with only two, spam and nospam command.
So he seems able to strengthen our logic.

Again, I don't object to Thomas even if he likes unnotalternates.
I'll just LOL in my room. (Like at the moment I knew he had committed
send2-hook to the CVS. What a nonsense name! But I'm happy with
its feature. That's enough for me.)

P.S.
Seems my message with two patches (short versions of assumed_charset
and adjust_line patches) went into a blackhole.
They are on http://www.momonga-linux.org/~tamo/ , too.
(short_assumed_charset and fmtstring patch)

-- 
tamo