Open
Bug 248639
Opened 21 years ago
Updated 2 years ago
Setting Outgoing format to UTF-8 causes all text attachments to be sent base64
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
NEW
People
(Reporter: R.Kelley.Cook, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9
Build Identifier: Mozilla Thunderbird 0.7 (Windows/20040616)
If the default outgoing character set is Western European, which of course is a
superset of 7 bit ASCII, then a plain ASCII text attachments will be sent as an
inline 7bit text.
However, if default outgoing character set is UTF-8 (which is also a superset of
ASCII) then that same plain ASCII text attachments will be sent base64 encoded.
Reproducible: Always
Steps to Reproduce:
1. Set Mozilla to Western European with Tools -> Options -> Fonts -> Outgoing
Mail: Western (ISO-8859-1)
2. Create a new message with a pure ASCII attachment such c:\boot.ini.
Attachment will be formatted:
Content-Type: text/plain; name="boot.ini"
Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="boot.ini"
3. Change to UTF-8 with Tools -> Options -> Fonts -> Outgoing Mail: Unicode (UTF-8)
4. Create a new message with a pure ASCII attachment. Attachment will be formatted:
Content-Type: text/plain; name="boot.ini"
Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="boot.ini"
Actual Results:
Step 2:
From - Fri Jun 25 12:28:14 2004
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <40DC529E.2070206@gcc.gnu.org>
Date: Fri, 25 Jun 2004 12:28:14 -0400
From: Kelley Cook <kcook@gcc.gnu.org>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xxx@xxx.com
Subject: test crlf
Sender: xxx@xxx.com
Content-Type: multipart/mixed;
boundary="------------070400070203010508030806"
This is a multi-part message in MIME format.
--------------070400070203010508030806
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
test
--------------070400070203010508030806
Content-Type: text/plain;
name="boot.ini"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="boot.ini"
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional"
/fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
--------------070400070203010508030806--
Step 4:
From - Fri Jun 25 12:43:04 2004
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <40DC5618.3020600@gcc.gnu.org>
Date: Fri, 25 Jun 2004 12:43:04 -0400
From: Kelley Cook <kcook@gcc.gnu.org>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xxx@xxx.com
Subject: Test Test Test
Sender: xxx@xxx.com
Content-Type: multipart/mixed;
boundary="------------060603070308040109030002"
This is a multi-part message in MIME format.
--------------060603070308040109030002
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
--------------060603070308040109030002
Content-Type: text/plain;
name="boot.ini"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="boot.ini"
W2Jvb3QgbG9hZGVyXQ0KdGltZW91dD0zDQpkZWZhdWx0PW11bHRpKDApZGlzaygwKXJkaXNr
KDApcGFydGl0aW9uKDEpXFdJTkRPV1MNCltvcGVyYXRpbmcgc3lzdGVtc10NCm11bHRpKDAp
ZGlzaygwKXJkaXNrKDApcGFydGl0aW9uKDEpXFdJTkRPV1M9Ik1pY3Jvc29mdCBXaW5kb3dz
IFhQIFByb2Zlc3Npb25hbCIgL2Zhc3RkZXRlY3QNCkM6XENNRENPTlNcQk9PVFNFQ1QuREFU
PSJNaWNyb3NvZnQgV2luZG93cyBSZWNvdmVyeSBDb25zb2xlIiAvY21kY29ucw0K
--------------060603070308040109030002--
Expected Results:
Both methods should have been sent the attachment via 7-bit ASCII as both
character sets are a superset of ASCII.
Comment 1•20 years ago
|
||
Reproduced with TB 0.9, Moz 1.8a5-1118.
Assignee: mscott → sspitzer
Status: UNCONFIRMED → NEW
Component: General → Composition
Ever confirmed: true
Product: Thunderbird → MailNews
Version: unspecified → Trunk
Updated•20 years ago
|
Product: MailNews → Core
Comment 2•19 years ago
|
||
*** Bug 314947 has been marked as a duplicate of this bug. ***
Comment 3•19 years ago
|
||
*** Bug 314947 has been marked as a duplicate of this bug. ***
Comment 4•19 years ago
|
||
*** Bug 314947 has been marked as a duplicate of this bug. ***
Comment 5•19 years ago
|
||
*** Bug 314947 has been marked as a duplicate of this bug. ***
Comment 6•19 years ago
|
||
*** Bug 340271 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Assignee: sspitzer → nobody
QA Contact: composition
Comment 7•17 years ago
|
||
I'd start debugging around here:
http://mxr.mozilla.org/mailnews/source/mailnews/compose/src/nsMsgAttachmentHandler.cpp#260
Assignee | ||
Updated•17 years ago
|
Product: Core → MailNews Core
The route for step 1 is now: Tools - Options - Display - Formatting - (Fonts) Advanced - Outgoing messages
I created an ASCII file in Powershell by redirecting Get-Process output to a file:
GPS | Out-File -FilePath c:\ascii.txt -Encoding ASCII
The encoding, however, is UTF-8 as verified in multiple programs and also in TB.
This is for ISO-8859-1:
Content-Type: text/plain; charset=UTF-8;
name="ascii.txt"
Content-Transfer-Encoding: 7bit
This is for UTF-8 (still repro):
Content-Type: text/plain; charset=UTF-8;
name="ascii.txt"
Content-Transfer-Encoding: base64
Thunderbird 52.0.1 (32-bit)
Windows 7 64-bit
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•