git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] send-email: fix mutt regex for grouped aliases
@ 2009-09-30  0:08 Felipe Contreras
  2009-09-30 11:28 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Felipe Contreras @ 2009-09-30  0:08 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Eric Wong, Felipe Contreras

For example:
alias -group friends foo Foo Bar <foo@bar.com>

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 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..ec43a5e 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
-- 
1.6.5.rc2.1.gec34

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-01  0:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30  0:08 [PATCH] send-email: fix mutt regex for grouped aliases Felipe Contreras
2009-09-30 11:28 ` Jeff King
2009-09-30 14:49   ` [PATCH v2] " Felipe Contreras
2009-09-30 20:55     ` Eric Wong
2009-10-01  0:22       ` Jeff King
2009-09-30 14:50   ` [PATCH] " Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).