From: Felipe Contreras Date: Wed, 30 Sep 2009 14:50:25 GMT Subject: Re: [PATCH] send-email: fix mutt regex for grouped aliases Message-ID: <94a0d4530909300750y4ea5225by3acb72010c6545fb@mail.gmail.com> In-Reply-To: <20090930112833.GA4984@sigio.peff.net> On Wed, Sep 30, 2009 at 2:28 PM, Jeff King wrote: > On Wed, Sep 30, 2009 at 03:08:43AM +0300, Felipe Contreras wrote: > >> For example: >> alias -group friends foo Foo Bar > > Hmm. If I am reading the mutt docs correctly, is it also legal to have: > >  alias -group group1 -group group2 foo Foo Bar > > ? > > Which would need just: > >> -             if (/^\s*alias\s+(\S+)\s+(.*)$/) { >> +             if (/^\s*alias\s+(?:-group\s+\S+\s+)?(\S+)\s+(.*)$/) { > >   (?:-group\s+\S+\s+)* > > I think. Yeap, that is correct. Resent. -- Felipe Contreras