Re: [RFC] git-send-email: do not double-escape quotes from mutt

2016-01-04 Thread Matthieu Moy
Eric Wong writes: > --- a/git-send-email.perl > +++ b/git-send-email.perl > @@ -524,8 +524,14 @@ my %parse_alias = ( > if (/^\s*alias\s+(?:-group\s+\S+\s+)*(\S+)\s+(.*)$/) { > my ($alias, $addr) = ($1, $2); > $addr =~ s/#.*$//; # mutt allo

Re: [RFC] git-send-email: do not double-escape quotes from mutt

2015-12-28 Thread Eric Wong
Junio C Hamano wrote: > Eric Wong writes: > > > -# commas delimit multiple addresses > > - $aliases{$alias} = [ split_addrs($addr) ]; > > + # commas delimit multiple addresses > > + my @addr = split_addrs($addr); > > + > >

Re: [RFC] git-send-email: do not double-escape quotes from mutt

2015-12-28 Thread Junio C Hamano
Eric Wong writes: > - # commas delimit multiple addresses > - $aliases{$alias} = [ split_addrs($addr) ]; > + # commas delimit multiple addresses > + my @addr = split_addrs($addr); > + > + # quotes

[RFC] git-send-email: do not double-escape quotes from mutt

2015-12-26 Thread Eric Wong
mutt saves aliases with escaped quotes in the form of: alias dot \"Dot U. Sir\" When we pass through our sanitize_address routine, we end up with double-escaping: To: "\\\"Dot U. Sir\\\" Remove the escaping in mutt only for now, as I am not sure if other mailers can do this o