git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] send-email: Update regex parsing for pine aliases

From
KGKumar Gala <galak@kernel.crashing.org>
Date
Jul 24, 2007, 14:50 UTC
Message-ID
<Pine.LNX.4.64.0707240949040.19035@blarg.am.freescale.net>

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>
---
 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 a09b1c9..f43f92f 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -237,7 +237,7 @@ my %parse_alias = (
 			$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>) {
-- 
1.5.2.2
Message 1 of 1 in “send-email: Update regex parsing for pine aliases”
  1. send-email: Update regex parsing for pine aliasesKumar Gala, Jul 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.