Repository navigation
Commit f0f501b
committed
API: Properly quote name
RFC 5322, "Internet Message Format" specifies in §3.4 Address
Specification that commas separate the addresses in a list. But some
people use comma in their name:
pwclient list -S "$series_id" -f '%{submitter}'
Surname, Name <foo@example.com>
Using passing the output to git send-email causes it to fail (at least
dovecot refuses to send):
git send-email --to="Surname, Name <foo@example.com>" ...
5.5.4 Invalid TO: Missing domain
Quoting name helps:
pwclient list -S "$series_id" -f '%{submitter}'
"Surname, Name" <foo@example.com>
git send-email --to='"Surname, Name" <foo@example.com>" ...
To: "Surname, Name" <foo@example.com>
Result: 250
Signed-off-by: Petr Vorel <pvorel@suse.cz>1 parent e6c42b2 commit f0f501b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
756 | 760 | | |
757 | 761 | | |
758 | 762 | | |
| |||
0 commit comments