* [PATCH] git-send-email: allow leading white space on mutt aliases
@ 2007-05-17 5:15 Michael Hendricks
0 siblings, 0 replies; only message in thread
From: Michael Hendricks @ 2007-05-17 5:15 UTC (permalink / raw)
To: git; +Cc: Michael Hendricks
mutt version 1.5.14 (perhaps earlier versions too) permits alias files to have
white space before the 'alias' keyword.
Signed-off-by: Michael Hendricks <michael@ndrix.org>
---
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 404095f..eb876f8 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -212,7 +212,7 @@ my $aliasfiletype = $repo->config('sendemail.aliasfiletype');
my %parse_alias = (
# multiline formats can be supported in the future
mutt => sub { my $fh = shift; while (<$fh>) {
- if (/^alias\s+(\S+)\s+(.*)$/) {
+ if (/^\s*alias\s+(\S+)\s+(.*)$/) {
my ($alias, $addr) = ($1, $2);
$addr =~ s/#.*$//; # mutt allows # comments
# commas delimit multiple addresses
--
1.5.2.rc3.39.gaf9b-dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-17 5:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 5:15 [PATCH] git-send-email: allow leading white space on mutt aliases Michael Hendricks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.