{"thread":{"id":"19002","subject":"[PATCH] Add parsing of elm aliases to git-send-email","startedAt":"2009-04-22T13:41:29Z","lastAt":"2009-04-23T04:21:35Z","messageCount":2,"participants":["Bill Pemberton","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"111946","messageId":"1240407689-19500-1-git-send-email-wfp5p@virginia.edu","threadId":"19002","inReplyTo":null,"subject":"[PATCH] Add parsing of elm aliases to git-send-email","fromName":"Bill Pemberton","fromEmail":"wfp5p@virginia.edu","sentAt":"2009-04-22T13:41:29Z","receivedAt":"2009-04-22T13:41:29Z","isPatch":true,"sender":{"key":"wfp5p@virginia.edu","avatar":null},"body":"elm stores a text file version of the aliases that is\n<alias> = <comment> = <email address>\n\nThis adds the parsing of this file to git-send-email\n\nSigned-off-by: Bill Pemberton <wfp5p@virginia.edu>\n---\n\nI'm probably the only one that still uses elm, but hey, it's an easy \nparser to add.\n\n Documentation/git-send-email.txt |    2 +-\n git-send-email.perl              |    8 ++++++++\n 2 files changed, 9 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 0b1f183..794224b 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -262,7 +262,7 @@ sendemail.aliasesfile::\n \n sendemail.aliasfiletype::\n \tFormat of the file(s) specified in sendemail.aliasesfile. Must be\n-\tone of 'mutt', 'mailrc', 'pine', or 'gnus'.\n+\tone of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus'.\n \n sendemail.multiedit::\n \tIf true (default), a single editor instance will be spawned to edit\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex 172b53c..c08d40c 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -418,6 +418,14 @@ my %parse_alias = (\n \t\t\t$x =~ /^(\\S+)$f\\t\\(?([^\\t]+?)\\)?(:?$f){0,2}$/ or next;\n \t\t\t$aliases{$1} = [ split_addrs($2) ];\n \t\t}},\n+        elm => sub  { my $fh = shift;\n+\t              while (<$fh>) {\n+\t\t\t  if (/^(\\S+)\\s+=\\s+[^=]+=\\s(\\S+)/) {\n+\t\t\t      my ($alias, $addr) = ($1, $2);\n+\t\t\t       $aliases{$alias} = [ split_addrs($addr) ];\n+\t\t\t  }\n+\t\t      } },\n+\n \tgnus => sub { my $fh = shift; while (<$fh>) {\n \t\tif (/\\(define-mail-alias\\s+\"(\\S+?)\"\\s+\"(\\S+?)\"\\)/) {\n \t\t\t$aliases{$1} = [ $2 ];\n-- \n1.6.0.6\n"},{"id":"112043","messageId":"7vbpqoxank.fsf@gitster.siamese.dyndns.org","threadId":"19002","inReplyTo":"1240407689-19500-1-git-send-email-wfp5p@virginia.edu","subject":"Re: [PATCH] Add parsing of elm aliases to git-send-email","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-04-23T04:21:35Z","receivedAt":"2009-04-23T04:21:35Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}