Re: [PATCH 4/4] send-email: add support for mutt aliases files
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 25, 2006, 20:31 UTC
- Message-ID
- <7vfyl6uuzt.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <11432834111445-git-send-email-normalperson@yhbt.net>
Eric Wong <normalperson@yhbt.net> writes:
> More email clients/address book formats can easily be supported > in the future.
Show 8 quoted lines
> +if (my $mutt_aliases = `git-repo-config sendemail.muttaliases`) {
> + chomp $mutt_aliases;
> + open my $ma, '<', $mutt_aliases or die "opening $mutt_aliases: $!\n";
> + while (<$ma>) { if (/^alias\s+(\S+)\s+(.*)/) { $aliases{$1} = $2 } }
> + close $ma;
> +}
> +# aliases for more mail clients can be supported here:
> +I'd rather avoid proliferation of sendemail.{foo,bar,mutt,pine,...}aliases variables. Can we autodetect the alias file format and parse the given file accordingly?