[BUG] git send-email: incorrectly parses email address with comma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--to="a@xxxxxxxxxxx, b@xxxxxxxxxxx"

But email addresses may contain commas themselves:

--to="LASTNAME, firstname <firstname.lastname@xxxxxxxxxxx>"

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

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

Send this email? ([y]es|[n]o|[q]uit|[a]ll): a
Password for 'smtp://xypron.glpk@xxxxxxxxxxx@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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux