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

alternates (was: What should go into 1.5.7?)



Hi Tamotsu-san,

 On Thursday, January 27, 2005 at 1:12:22 AM +0900, Tamotsu Takahashi wrote:

> ==== ideal "alternates" behaviour ====
> While reading muttrc...
>       Mutt stores REs of "alternates" command.
>       Mutt stores REs of "unalternates" command.
> 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.

    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.

    Am I mad? Would this confuse user's ego(s)? Too much spiralling
personalities? Be a gold mine for psychoanalysts? And who am I?

    The responsibles are Thomas Roessler and David Yitzchak Cohen in
mutt-users thread "[un]alternates not quite working" on May 2004
starting at <20040517190808.GA31703@xxxxxxxxxxxxxxxxxxxx> (probably the
thread Charles referenced). « This can start getting a little ugly »
said Dave, thus definitely validating the concept as a genious one.


Bye!    root on pts/0.
-- 
Hotmail users break umlauts for everyone else on a mailing list!
They should stop doing so immediately!
        « MSN considered HARMFUL » PCC CB on MU. © June 2002