Bug 529180

Summary: evolution-mapi has problems encoding mails containing html
Product: [Fedora] Fedora Reporter: Espen Stefansen <libbe>
Component: evolution-mapiAssignee: Matthew Barnes <mbarnes>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-15 14:29:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Espen Stefansen 2009-10-15 11:27:08 UTC
Description of problem:
I use evolution-mapi and i've set default encoding to ISO-8859-1 in evolution. But still all emails with html that contains the norwegian characters æ, ø and å gets garbled. The paragraph that contains these letters, gets changed to '[?]'. The paragraphs that doesn't, is just fine.
But when i change the encoding from default to ISO-8859-1 for that particular email, the email is displayed correctly. 

It seems that evolution-mapi only interprets the mail-encoding, but not the html-encoding. Here's the encoding part from the header:
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="CP28591"

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">

Evolution probably just finds the first encoding and uses that. But when the encoding is changed to iso-8859-1, everything is fine. If i get the same email without the html, øæå is displayed correctly.


Version-Release number of selected component (if applicable):
evolution-2.28.0-2.fc12.i686
evolution-data-server-2.28.0-1.fc12.i686
evolution-mapi-0.28.0-1.fc12.i686


How reproducible:
Every email that contains æ, ø, and å.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthew Barnes 2009-10-15 14:29:27 UTC
Moving this upstream where it can be tracked more easily.
Please see [1] for further updates.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=598564