Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
send-email: Update regex parsing for pine aliases
author
Kumar Gala
<galak@kernel.crashing.org>
Tue, 24 Jul 2007 14:50:38 +0000
(09:50 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 25 Jul 2007 00:28:10 +0000
(17:28 -0700)
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>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f836f1a
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index a09b1c96509e2587966fd2b1c5691e216f56ba8b..f43f92f9579198dd092a09551a914da2c4c99b6e 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-237,7
+237,7
@@
sub format_2822_time {
$aliases{$1} = [ split(/\s+/, $2) ];
}}},
pine => sub { my $fh = shift; while (<$fh>) {
- if (/^(\S+)\
s+
(.*)$/) {
+ if (/^(\S+)\
t.*\t
(.*)$/) {
$aliases{$1} = [ split(/\s*,\s*/, $2) ];
}}},
gnus => sub { my $fh = shift; while (<$fh>) {