summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7bd93c1)
raw | patch | inline | side by side (parent: 7bd93c1)
author | Bill Pemberton <wfp5p@virginia.edu> | |
Wed, 22 Apr 2009 13:41:29 +0000 (09:41 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 23 Apr 2009 02:10:41 +0000 (19:10 -0700) |
elm stores a text file version of the aliases that is
<alias> = <comment> = <email address>
This adds the parsing of this file to git-send-email
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
<alias> = <comment> = <email address>
This adds the parsing of this file to git-send-email
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-send-email.txt | patch | blob | history | |
git-send-email.perl | patch | blob | history |
index 0b1f183ce8c88a59125b94b8a4db55304dcbc8eb..794224b1b3431655aa9e9683c9d938e35f7a3ea4 100644 (file)
sendemail.aliasfiletype::
Format of the file(s) specified in sendemail.aliasesfile. Must be
- one of 'mutt', 'mailrc', 'pine', or 'gnus'.
+ one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus'.
sendemail.multiedit::
If true (default), a single editor instance will be spawned to edit
diff --git a/git-send-email.perl b/git-send-email.perl
index 172b53c2d5b8ccad6a1bee592bccbe27d8f3127c..cccbf4517aa46d4d217a1ce25105f7c413301d2d 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
$x =~ /^(\S+)$f\t\(?([^\t]+?)\)?(:?$f){0,2}$/ or next;
$aliases{$1} = [ split_addrs($2) ];
}},
+ elm => sub { my $fh = shift;
+ while (<$fh>) {
+ if (/^(\S+)\s+=\s+[^=]+=\s(\S+)/) {
+ my ($alias, $addr) = ($1, $2);
+ $aliases{$alias} = [ split_addrs($addr) ];
+ }
+ } },
+
gnus => sub { my $fh = shift; while (<$fh>) {
if (/\(define-mail-alias\s+"(\S+?)"\s+"(\S+?)"\)/) {
$aliases{$1} = [ $2 ];