After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540810 - Evolution inserts UTF8's BOM (=EF=BB=BF) before pasted text.
Evolution inserts UTF8's BOM (=EF=BB=BF) before pasted text.
Status: RESOLVED DUPLICATE of bug 533741
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-06-29 21:02 UTC by Franklin PIAT
Modified: 2008-06-29 21:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Franklin PIAT 2008-06-29 21:02:56 UTC
Please describe the problem:
In some very specific circumstance described below, Evolution mailer inserts UTF8's BOM (=EF=BB=BF) 

This causes the resulting email to be rejected by some recipients (procmail...) because the resulting mail contain non plain-ascii text, even though the sender meant to send plain ascii file.

Steps to reproduce:
1. Click on Menu/File/New/New Mail Message
2. *Type* the exact text (don't press enter after "ddd") :
aaa bbb ccc
ddd
3. then select "bbb", copy it and paste it after "ddd".
4. then type eee
4. Save the message as a draft

Actual results:
If you reopen the draft, then open it, got to Menu/View/Message Source, you can notice that the message contains :

> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
> 
> aaa bbb ccc
> ddd=EF=BB=BFbbbeee

Notice that :
A) There is the sequence "=EF=BB=BF" before the text we pasted.
B) The text is sent as  "Content-Type: text/plain; charset=UTF-8"

Expected results:
The content should have been :
> Content-Type: text/plain
> Content-Transfer-Encoding: 7bit
> 
> aaa bbb ccc
> dddbbbeee

Does this happen every time?
Yes, If the steps above are repeated exactly.

Note that the BOM is only inserted during the paste if the text is in "quoted-printable", not in "base64" encoding.

And 

The message is sent in "quoted-printable" if you follow the steps above (the constraints are :  The first line must contain at least three words, you can copy any of the three. The second line must contain at least 3 words, the pasted text must not be pasted at the beginning of that second line )

Other information:
Comment 1 Matthew Barnes 2008-06-29 21:18:47 UTC

*** This bug has been marked as a duplicate of 533741 ***