Open Bug 1163266 Opened 5 years ago

Mail subject which contains more than one lines can not be decoded correctly

Categories

(Thunderbird :: Message Reader UI, defect)

31 Branch
defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: freecch, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150415140819

Steps to reproduce:

A mail subject with 2 lines as following:
1st line is 
Subject: =?UTF-8?B?Ti1SZXBvcnRlciBSZWFsdGltZSBUcmVuZCBXYXJuaW5nIDIwMTUtMDUtMDkgMDk6NTA=
2nd line is 
 ?= 
(begin with a white space char and followed by 2 chars '?=')


Actual results:

The subject in TB thread pane is displayed as:
Ti1SZXBvcnRlciBSZWFsdGltZSBUcmVuZCBXYXJuaW5nIDIwMTUtMDUtMDkgMDk6NTA=

in message pane:
=?UTF-8?B?Ti1SZXBvcnRlciBSZWFsdGltZSBUcmVuZCBXYXJuaW5nIDIwMTUtMDUtMDkgMDk6NTA= ?=
(There is a white space char before the last 2 chars '?=')


Expected results:

The subject show displayed as:
N-Reporter Realtime Trend Warning 2015-05-09 09:40
You need to log in before you can comment on or make changes to this bug.