get_maintainer.pl and git send-email: 5.1.2 The recipient address <linux-mtd@xxxxxxxxxxxxxxxxxxx)> is not a valid

From: RafaÅ MiÅecki
Date: Wed Sep 14 2016 - 06:46:04 EST


Hi Joe,

Some time ago I started using git send-email with --cc-cmd and
get_maintainer.pl. I liked it and it worked fine until I tried to send
ubifs patch patch. I got this:
Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
5.1.2 The recipient address <linux-mtd@xxxxxxxxxxxxxxxxxxx)> is not a valid
5.1.2 RFC-5321 address. j11sm4705544lfe.27 - gsmtp

I suspect there may be some problem with MAINTAINERS entries using braces.

Could you take a look at following try?
https://patchwork.ozlabs.org/patch/669853/

wget -O mtd.patch https://patchwork.ozlabs.org/patch/669853/mbox/
git send-email --cc-cmd="scripts/get_maintainer.pl" mtd.patch

It results in:
(cc-cmd) Adding cc: linux-mtd@xxxxxxxxxxxxxxxxxxx (open list:UBI FILE
SYSTEM (UBIFS)) from: 'scripts/get_maintainer.pl'
and Cc-ing:
linux-mtd@xxxxxxxxxxxxxxxxxxx) (open list:UBI FILE SYSTEM (UBIFS)

Is this something to fix at get_maintainer.pl level?

--
RafaÅ