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

Re: FEATURE: regexp support for lists/subscribe; alternates change



On Mon, Jan 12, 2004 at 11:43:36PM +0100, Thomas Roessler wrote:
> Anyway, here's the proposal: We currently have either regular
> expressions, or lists of strings which are matched against
> identifiers.  I'd like to unify these, at least for some
> configuration settings.  The attached patch does just that, for the
> list commands, and for $alternates; ironically, this returns the
> "alternates" command from the very old days.   With the attached
> patfch, you can say things like this:
> 
>  subscribe ^mutt-.*@mutt.org ^[0-9]*@bugs.guug.de
>  alternates roessler@does-not-exist.(org|net) roessler@xxxxxxxx
> 
> (Of course, strictly speaking, these expressions are too lose, as
> the dots should each be replaced by '\\.'.)

This looks okay to me although I'm not clear as to how the ^/$ anchors
work on mail addresses.  Is mutt matching the entire From: line or just
the e-mail address?  Do you need to anchor the alternates in a similar
way?

-- 
Will Fiveash