]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
Significant update to jb2bz.py. (#58)
authorQuanah Gibson-Mount <quanah@symas.com>
Thu, 4 Jan 2018 15:51:06 +0000 (07:51 -0800)
committerDylan William Hardison <dylan@hardison.net>
Thu, 4 Jan 2018 15:51:06 +0000 (10:51 -0500)
commit7fd3bfed65b20cb42d48f8ff3decdf6970057c1c
tree5ce77eebae9070fed37ea5be7dd11d4fa219767d
parent842ac4647276ba5354289082adbdca75e0b19107
Significant update to jb2bz.py. (#58)

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1427626
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1427638
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1427664

Convert jb2bz to use "email" module rather than rfc822, multifile,
mimetools, and StringIO for easier manipulation of the mailbox objects.

This fixed (among other things) 1427626 as the Subject of the email is
now obtained correctly.

Fix the date formatting throughout to always use UTC, which is what
Bugzilla expects for the dates.  This fixed 1427638.

Fix attachment processing, which was using multifile rather than walking
the parts of the email object.  This fixed part of 1427664

Fix the fact that the process_reply_file function never checked for
attachments in any followups.  This fixed part of 1427664

Fix attachment processor to ignore various signatures and message/rfc822
multipart messages.  For the latter, it sets "filename=" values to files
that don't actually exist, which caused attachment processing to bomb.
contrib/jb2bz.py