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

UNCONFIRMED
Unassigned

Status

MailNews Core
MIME
--
major
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: Markus, Unassigned)

Tracking

({regression})

x86_64
Windows 8.1
regression

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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
(Reporter)

Updated

2 years ago
Severity: normal → critical
OS: Unspecified → Windows 8.1
Priority: -- → P5
Hardware: Unspecified → x86_64

Updated

2 years ago
Severity: critical → major
Priority: P5 → --

Updated

2 years ago
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.