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 201993 - broken 8-bit headers
broken 8-bit headers
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal normal
: ---
Assigned To: Not Zed
Evolution QA team
: 206422 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-03-26 18:01 UTC by Dan Winship
Modified: 2013-09-10 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2001-03-26 18:01:22 UTC
If header contains 8-bit data, and a Content-Type is specified for the body,
assume the header has the same charset as the body. (ugh)
Comment 1 Not Zed 2001-03-26 22:01:42 UTC
No, this is simply not possible.
Comment 2 Not Zed 2001-03-26 23:26:57 UTC
well it might be.

i forgot the headers are all created/stored before the summary is created (which
is really the important bit here).  so the summarising function could just do
it  itself with some awful hack.

and then do similarly for the message opening function, but i'm not sure this
will even be what epople want
Comment 3 Jeffrey Stedfast 2001-07-20 00:15:44 UTC
I've modified the header_decode_string/header_decode_text functions to
take a default_charset argument.

I also made each function that calls header_decode_string() pass in
the locale charset as the default, although if we can make it pass in
the Content-Type charset, that would probably be better.

But I think the locale is at least a start...even if it's not ideal.
Comment 4 Jeffrey Stedfast 2001-08-06 23:31:53 UTC
*** bug 206422 has been marked as a duplicate of this bug. ***
Comment 5 Vlad 2001-08-07 13:44:10 UTC
Yes, passing the charset from Content-Type as default_charset
would be a solution for 99.999% of cases with chars with 8th bit set
in headers.
So please, please fix this by peeking Content-Type's charset and passing
it as default_charset parameter.
Comment 6 Not Zed 2001-09-24 19:05:12 UTC
I've changed it thus:

 - it'll try the content-type charset if supplied
 - it'll try the locale charset if supplied
 - it'll give up, and just append anyway

It'll try with any data, so there's cases it will produce the wrong
thing.  e.g. 7 bit ascii that is 7 bit ascii might get converted to
japanese (assuming 7 bit decoding doesn't overlap, which it does afaik
for most 'western' encodings).

The same changes have been propagated to searching/filtering as well.

Should it only try this conversion for 8 bit data?