Note offset 0x111 and 0x112 -- a bare LF is there, in between the UTF-8 encoding and the email address.
This is the UTF-8 for 'Santé...". The encoding is still inserting a bare LF in the stream.
Reproducible: Always
Steps to Reproduce:
1. Set up your display name with accented characters, say "Liberté Equalité Fraternité", or "Ócio", or similar.
2. send an email to somebody else, setting Return Receipt
3. look at/sniff/whatever the actual SMTP stream (unfortunately it seems TB does not save the sent MDN -- or, at least, I cannot find it in my folders).
4. If the recipient of the MDN request is running under QMail, perfect, you will be able to see the QMail error.
Actual Results:
UTF-8 encoding of MDN inserts a bare LF in the stream
Expected Results:
either a CRLF is inserted, or no bare LF.
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7pre) Gecko/20091215 Ubuntu/9.10 (karmic) Shiretoko/3.5.7pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7pre) Gecko/20091214 Shredder/3.0.1pre
Original Ubuntu bug: https:/ /bugs.launchpad .net/ubuntu/ +source/ thunderbird/ +bug/233990
Tested on TB 3.0.1pre1 and TB 2.0.0.23.
When a MDN (return receipt) is sent, the UTF-8 encoding of the 'To:' address is inserted with a bare LF at the end.
This breaks RFC822. Although not all SMTP servers are picky, at least QMail refuses to send the message.
This does not happen if the display name of the email address can be represented in ASCII.
For example, the following is an excerpt of a sniffer trace ran on a SMTP session, showing the error:
00b0 6d 3e 0d 0a 53 75 62 6a 65 63 74 3a 20 52 65 74 m>..Subject: Ret
00c0 75 72 6e 20 52 65 63 65 69 70 74 20 28 64 69 73 urn Receipt (dis
00d0 70 6c 61 79 65 64 29 20 2d 20 74 65 73 74 20 4d played) - test M
00e0 44 4e 20 35 20 54 42 33 0d 0a 54 6f 3a 20 3d 3f DN 5 TB3..To: =?
00f0 55 54 46 2d 38 3f 42 3f 55 32 46 75 64 4d 4f 70 UTF-8?B?U2FudMOp
0100 49 47 52 6c 4c 55 46 32 61 57 78 73 5a 58 6f 3d IGRlLUF2aWxsZXo=
0110 3f 3d *0a* 20 3c 68 67 67 64 68 32 40 75 62 75 6e ?=. <hggdh2@ubun
0120 74 75 2e 63 6f 6d 3e 0d 0a 52 65 66 65 72 65 6e tu.com>..Referen
Note offset 0x111 and 0x112 -- a bare LF is there, in between the UTF-8 encoding and the email address.
This is the UTF-8 for 'Santé...". The encoding is still inserting a bare LF in the stream.
Reproducible: Always
Steps to Reproduce:
1. Set up your display name with accented characters, say "Liberté Equalité Fraternité", or "Ócio", or similar.
2. send an email to somebody else, setting Return Receipt
3. look at/sniff/whatever the actual SMTP stream (unfortunately it seems TB does not save the sent MDN -- or, at least, I cannot find it in my folders).
4. If the recipient of the MDN request is running under QMail, perfect, you will be able to see the QMail error.
Actual Results:
UTF-8 encoding of MDN inserts a bare LF in the stream
Expected Results:
either a CRLF is inserted, or no bare LF.