Closed Bug 1611494 Opened 6 years ago Closed 6 years ago

Bugzilla custom email headers are getting mashed together

Categories

(bugzilla.mozilla.org :: Email Notifications, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kats, Assigned: dkl)

Details

(Keywords: regression)

Attachments

(1 file)

As of very recently (yesterday or today) the bugzilla plaintext email notifications have the X-Bugzilla headers getting mashed together instead of being on separate lines. Here's a snippet:

X-Bugzilla-Reason: =?UTF-8?Q?None?X-Bugzilla-Type: =?UTF-8?Q?changed?X-Bugzilla-Watch-Reason: =?UTF-8?Q?CC_botond@mozilla.com?X-Bugzilla-Classification: =?UTF-8?Q?Components?X-Bugzilla-ID: =?UTF-8?Q?1601091?X-Bugzilla-Bug-Type: =?UTF-8?Q?defect?X-Bugzilla-Product: =?UTF-8?Q?Core?X-Bugzilla-Component: =?UTF-8?Q?Graphics?X-Bugzilla-Version: =?UTF-8?Q?unspecified?X-Bugzilla-Keywords:           
X-Bugzilla-Severity: =?UTF-8?Q?normal?

These used to be on separate lines.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

Note that this about email headers not the email body. And it seems to only happen with plaintext emails; if I use HTML email notifications the headers are properly separated by newlines.

Reopening as this appears to be a different issue from the bug it was duped to.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee: nobody → dkl
Status: REOPENED → ASSIGNED
Attached file GitHub Pull Request

Another issue with the headers is that the quoted-printable encoding isn't even correct; it's missing the final = character. e.g.

X-Bugzilla-Reason: =?UTF-8?Q?None?

should actually be

X-Bugzilla-Reason: =?UTF-8?Q?None?=

Presumably your PR will fix this as well. Again, this affects only the plaintext emails, not the HTML ones. Maybe the same code that's truncating off the newlines is truncating off the trailing =.

Merged to master

Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: