Repair importing mail with colon-space in subject
commit27a641a94ccf993c3f02d02ab575b4ca2af65548
authorPeter Grayson <pete@jpgrayson.net>
Mon, 9 Mar 2020 20:49:17 +0000 (9 16:49 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Mon, 9 Mar 2020 20:56:52 +0000 (9 16:56 -0400)
tree80cbdcdc78bc6485777a2219bfcb6c625f7d01dd
parentc8d2b382ade45c82116dc3778c292c2c8f77855d
Repair importing mail with colon-space in subject

The subject needs to be split exactly once, on the first colon, otherwise
any additional colons in the subject will cause the construction of the
mailinfo dict to fail.

The mbox import tests are updated to include a multi-colon subject that
will fail without this repair.

Repairs #53.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Thanks: Dave Kleikamp for the report and repair suggestion!
stgit/commands/imprt.py
t/t1800-import.sh
t/t1800/email-mbox