Open Bug 1213551 Opened 9 years ago Updated 9 years ago

Invalid From header sent when display name containing brackets ([ and ] not escacped)

Categories

(MailNews Core :: MIME, defect)

x86_64
Windows 8.1
defect
Not set
major

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: markus.mozilla, Unassigned)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20150929144111

Steps to reproduce:

Sent an email with sender name set to "Markus [MyCompany]" in the account settings.


Actual results:

The sent email contained these headers

From: Markus [MyCompany] <fake@example.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0

As a consequence some mail servers deny my mails due to invalid From header.


Expected results:

As in versions < 38, the From header has to properly quote the sender name if special chars as of RFC2822 are contained. The characters "[" and "]" are part of the "specials" (section 3.2.1 of RFC2822) token set and need quoting.

This is an example from a mail sent with Version 31, which does this correctly:

From: "Markus [MyCompany]" <fake@example.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
Severity: normal → critical
OS: Unspecified → Windows 8.1
Priority: -- → P5
Hardware: Unspecified → x86_64
Severity: critical → major
Priority: P5 → --
Component: Untriaged → MIME
Keywords: regression
Product: Thunderbird → MailNews Core
Summary: Invalid From header sent → Invalid From header sent when display name containing brackets ([ and ] not escacped)
You need to log in before you can comment on or make changes to this bug.