git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] send-email: fix mutt regex for grouped aliases

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 30, 2009, 14:50 UTC
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 <peff@peff.net> wrote:
Show 19 quoted lines
> On Wed, Sep 30, 2009 at 03:08:43AM +0300, Felipe Contreras wrote:
>
>> For example:
>> alias -group friends foo Foo Bar <foo@bar.com>
>
> Hmm. If I am reading the mutt docs correctly, is it also legal to have:
>
>  alias -group group1 -group group2 foo Foo Bar <foo@bar.com>
>
> ?
>
> 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
Previous: Jeff King
Message 6 of 6 in “send-email: fix mutt regex for grouped aliases”
  1. send-email: fix mutt regex for grouped aliasesFelipe Contreras, Sep 30, 2009
  2. Jeff KingSep 30, 2009
  3. send-email: fix mutt regex for grouped aliasesFelipe Contreras, Sep 30, 2009
  4. Eric WongSep 30, 2009
  5. Jeff KingOct 1, 2009
  6. Felipe ContrerasSep 30, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.