Strip comments from trailers for stg mail --auto
commit6a948ca8730d6b17bdd92d3c85999d45ea1e5675
authorPeter Grayson <pete@jpgrayson.net>
Fri, 22 Jan 2021 23:59:30 +0000 (22 18:59 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Sun, 7 Feb 2021 05:10:46 +0000 (7 00:10 -0500)
tree710ac7858852f08a73724fcdb83e0f1a648f57cb
parent7e972a6608cb2395386fc87646a1bf0c14f073db
Strip comments from trailers for stg mail --auto

Commits in the Linux kernel repo include 'Cc: ' trailers that contain
comments starting with '#'. When these commented trailers are incorporated
directly into email headers, the email will be rejected due to the invalid
syntax of the comments in the context of an email address.

Repairs #91
stgit/commands/mail.py
t/t1900-mail.sh