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 442934 - UTF8 encoding in headers not supported
UTF8 encoding in headers not supported
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.10.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 520772 555659 559282 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-06-01 15:15 UTC by Lars Strojny
Modified: 2011-12-19 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lars Strojny 2007-06-01 15:15:57 UTC
While evolution sends email-headers in compatibility mode (ISO-encoded) it should be ready to read UTF8-encoded headers like the following:
=?UTF-8?Q?Alles Gute w=C3=BCnsche ich dir!?=
Comment 1 Jeffrey Stedfast 2007-06-01 15:38:50 UTC
the problem is that the example you pasted isn't a valid encoded word (not allowed to have spaces)

there are a few possibilities for the correct encoding:

=?UTF-8?Q?Alles_Gute_w=C3=BCnsche_ich_dir!?=

(_'s get decoded into spaces)

Alles Gute =?UTF-8?Q?w=C3=BCnsche?= ich dir!


I'll leave it up to the current mail maintainers to decide if this should be closed or not.
Comment 2 André Klapper 2007-06-05 02:51:10 UTC
fejj, in the past we have always closed bugs like this as NOTGNOME, because the sender of such emails should ask the application developers to fix the sending application
Comment 3 Lars Strojny 2007-11-28 13:14:20 UTC
My humple opinion is, that evolution should be as liberal as possible in its receiving capabilities, but as strict as possible when sending stuff. Simple rule, but fits fairly well here.
Comment 4 André Klapper 2007-11-28 15:55:40 UTC
Lars, if you show me the "no idea how malformed the string is i get, i know how to transform it to a perfect correct display" algorithm, we can implement it.
Comment 5 Lars Strojny 2007-11-28 16:14:44 UTC
I would suggest to replace whitespaces with underscores when the complete string is encoded. Makes sense?
Comment 6 Jeffrey Stedfast 2007-12-02 17:41:28 UTC
Lars: you can't just replace spaces with underscores in headers formed by other mail clients because then you'd break correctly-formed encoded headers.
Comment 7 Lars Strojny 2007-12-02 17:52:06 UTC
Of course not. I would suggest to first detect, if the header is completely encoded. If it is, check weither there are whitespaces and replace them. The rest stays untouched.
Comment 8 Jeffrey Stedfast 2007-12-02 23:37:59 UTC
That's the point... that is non-trivial
Comment 9 Lars Strojny 2007-12-03 07:29:11 UTC
Glib's regex functions would be too slow?
Comment 10 Jean-François Fortin Tam 2008-05-29 14:29:32 UTC
doesn't the fact that it breaks currently already mean that the evolution app "knows" that it's malformed?
Comment 11 Jeffrey Stedfast 2008-05-29 21:53:29 UTC
no
Comment 12 Akhil Laddha 2009-08-19 12:14:26 UTC
*** Bug 555659 has been marked as a duplicate of this bug. ***
Comment 13 Akhil Laddha 2009-08-19 12:14:36 UTC
*** Bug 559282 has been marked as a duplicate of this bug. ***
Comment 14 Akhil Laddha 2009-08-19 12:51:35 UTC
*** Bug 520772 has been marked as a duplicate of this bug. ***
Comment 15 Jeffrey Stedfast 2011-12-19 16:39:37 UTC
I ended up implementing support for this in GMime's header decoder and then copied that code into Camel back in 2007, so this is probably "FIXED".

Check out commit a6130f62dafab744c3be19e571a747c4fe815679