Skip to content

Commit 2d8ae40

Browse files
kumargalagitster
authored andcommitted
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>
1 parent f836f1a commit 2d8ae40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ sub format_2822_time {
237237
$aliases{$1} = [ split(/\s+/, $2) ];
238238
}}},
239239
pine => sub { my $fh = shift; while (<$fh>) {
240-
if (/^(\S+)\s+(.*)$/) {
240+
if (/^(\S+)\t.*\t(.*)$/) {
241241
$aliases{$1} = [ split(/\s*,\s*/, $2) ];
242242
}}},
243243
gnus => sub { my $fh = shift; while (<$fh>) {

0 commit comments

Comments
 (0)