@matheusbsbs / matheus-bagliano / commits / 2d8ae400d1
Fork 0

send-email: Update regex parsing for pine aliases

The pine address book format is tab seperated and the first field is the nickname/alias and the third field is the email address as per: http://www.washington.edu/pine/tech-notes/low-level.html Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kumar Gala committed Jul 24, 2007 at 09:50 UTC 2d8ae400d134c326f3ab0ec15ae522fb74cd0b1d
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -237,7 +237,7 @@ my %parse_alias = (
237 $aliases{$1} = [ split(/\s+/, $2) ];
238 }}},
239 pine => sub { my $fh = shift; while (<$fh>) {
240 - if (/^(\S+)\s+(.*)$/) {
240 + if (/^(\S+)\t.*\t(.*)$/) {
241 $aliases{$1} = [ split(/\s*,\s*/, $2) ];
242 }}},
243 gnus => sub { my $fh = shift; while (<$fh>) {