With a recent change, we started using the original subject header
instead of the one we had already cleaned up at the parsing stage.
Revert this aspect of that change.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 01b9cbb9 ("Include all email headers in mboxes")
for key, val in orig_headers.items():
mail[key] = val
+ # specifically overwrite the subject with our own nicely formatted name
+ mail['Subject'] = submission.name
+
if 'Date' not in mail:
mail['Date'] = email.utils.formatdate(utc_timestamp)