Git send-email allows to combine multiple email addresses in one
parameter, e.g.

--to="[email protected], [email protected]"

But email addresses may contain commas themselves:

--to="LASTNAME, firstname <[email protected]>"

This may lead to an error:
$ git send-email --to="Schuchardt, Heinrich <[email protected]>" \
0000*.patch0000-cover-letter.patch
(mbox) Adding cc: Heinrich Schuchardt <[email protected]> from
line 'From: Heinrich Schuchardt <[email protected]>'

From: Heinrich Schuchardt <[email protected]>
To: Schuchardt,
        Heinrich <[email protected]>
Subject: [PATCH 0/2] efi_loader: adjust definitions of variable services
Date: Sat, 12 May 2018 10:01:21 +0200
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.17.0

Send this email? ([y]es|[n]o|[q]uit|[a]ll): a
Password for 'smtp://[email protected]@mail.example.com:587':
Syntax error in parameters or arguments



Please, implement the following logic,

If the string preceding a comma is not a valid email address do not
split it off.

Best regards

Heinrich Schuchardt

Reply via email to