* Alejandro Colomar <alx.manpa...@gmail.com>, 2021-12-24, 13:37:
$ git format-patch -o patches/send/ -1 HEAD --to='Foo V. Bar <f...@bar.com>'
$ git send-email patches/send/0013-Static-optimize-index-iteration.patch
patches/send/0001-foo.patch
To whom should the emails be sent (if anyone)?
Message-ID to be used as In-Reply-To for the first email (if any)?
(mbox) Adding cc: Alejandro Colomar <alx.manpa...@gmail.com> from line 'From:
Alejandro Colomar <alx.manpa...@gmail.com>'
(mbox) Adding to: "Foo V . Bar" <f...@bar.com> from line 'To: Foo V. Bar
<f...@bar.com>'
git-send-email uses Mail::Address for address parsing. This module is
responsible for inserting extra spaces:
$ perl 'use Mail::Address; @m = Mail::Address->parse("J.R. Hacker
<hacker\@example>"); say @m[0]->format;'
"J . R . Hacker" <hacker@example>
I'm not sure this is going to be fixed in Mail::Address though. The
module's man page has "all bugs are features; go away" vibes...
Maybe git-send-email could switch to something else? For example,
Lintian uses Email::Address::XS, which does the right thing:
$ perl -E 'use Email::Address::XS "parse_email_addresses"; @m = parse_email_addresses("J.R.
Hacker <hacker\@example>"); say @m[0]->format;'
"J.R. Hacker" <hacker@example>
--
Jakub Wilk