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

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

From
EWEric Wong <normalperson@yhbt.net>
Date
Sep 30, 2009, 20:55 UTC
Message-ID
<20090930205501.GA30910@dcvr.yhbt.net>
In-Reply-To
<1254322176-4561-1-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 6 quoted lines
> For example:
> alias -group friends foo Foo Bar <foo@bar.com>
> 
> Comments by Jeff King.
> 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Interesting, I didn't know about this feature in mutt before.
Acked(-and-tested)-by: Eric Wong <normalperson@yhbt.net>
Show 18 quoted lines
> ---
>  git-send-email.perl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/git-send-email.perl b/git-send-email.perl
> index 0700d80..93b7ed2 100755
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -401,7 +401,7 @@ my %aliases;
>  my %parse_alias = (
>  	# multiline formats can be supported in the future
>  	mutt => sub { my $fh = shift; while (<$fh>) {
> -		if (/^\s*alias\s+(\S+)\s+(.*)$/) {
> +		if (/^\s*alias\s+(?:-group\s+\S+\s+)*(\S+)\s+(.*)$/) {
>  			my ($alias, $addr) = ($1, $2);
>  			$addr =~ s/#.*$//; # mutt allows # comments
>  			 # commas delimit multiple addresses
> -- 
Previous: Felipe ContrerasNext: Jeff King
Message 4 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.