[Evolution] Bug#447233: evolution-data-server: mime words in email header not decoded
Darren
darren.hoo at gmail.com
Fri Oct 19 09:21:39 UTC 2007
Package: evolution-data-server
Version: 1.12.0-1
Severity: important
Tags: patch
Chinese M$ outlook users tend to use gb2312 when they send emails.but
they mixed simplified chinese characters and traditional chinese and
also other characters beyond the scope of gb2312 in mail's header and
body which are in fact GBK.below is a sample mail header,it can import into
evolution:
-----sample mail header start-----------
Received: by test.com id
<01C8122C.6D3AA0B1 at test.com>; Fri, 19 Oct 2007 16:45:40 +0800
MIME-Version: 1.0
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5
Subject: =?gb2312?B?xOOCgw==?=
Date: Fri, 19 Oct 2007 16:45:40 +0800
Message-ID: <3EF0A61969CFD748AF2B60BFACDCC521020213AE at test.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: =?gb2312?B?xOOCgw==?=
Thread-Index: AcgSLG04DrAwBPZbQJaz7adEcPTd/g==
From: =?gb2312?B?SHUsIERhcnJlbiAouvrS449WIElFUyk=?= <Darren at test.com>
To: =?gb2312?B?SHUsIERhcnJlbiAouvrS449WIElFUyk=?= <Darren at test.com>
-----sample mail header end-----------
evolution fails to decode the mime headers because the characters are beyond
the scope of charset gb2312.it just shows the orignial header like =?gb2312?B?xOOCgw==?=
which is somewhat annoying.And characters beyond gb2312 charset in the
mail body also not shows correctly.the alike problem also occurs in
firefox 1.x and latest epiphany-broswer(which has a workaround),but
solved in firefox 2.x.
since gb18030 is a superset of gbk and gb2312,always to decode mail
using gb18030 is more error-tolerable and user-friendly.
here is a patch I made to file
evolution-data-server-1.12.0/libedataserver/e-iconv.c
I have succesfully builded it using dpkg-build
--cut here--
138c138
< { "zh_CN.euc", "gb18030" },
---
> { "zh_CN.euc", "gb2312" },
140c140
< { "euc-cn", "gb18030" },
---
> { "euc-cn", "gb2312" },
144,147c144,146
< { "gb2312-0", "gb18030" },
< { "gb2312.1980-0", "gb18030" },
< { "gb-2312", "gb18030" },
< { "gb2312", "gb18030" },
---
> { "gb2312-0", "gb2312" },
> { "gb2312.1980-0", "gb2312" },
> { "gb-2312", "gb2312" },
597d595
< { "gb18030", "zh" },
598a597
> { "gb18030", "zh" },
--cut here--
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages evolution-data-server depends on:
ii evolution-data-server 1.12.0-1 architecture independent files for
ii libbonobo2-0 2.20.0-1 Bonobo CORBA interfaces library
ii libc6 2.6.1-5 GNU C Library: Shared libraries
ii libcamel1.2-10 1.12.0-1 The Evolution MIME message handlin
ii libcomerr2 1.40.2-1 common error description library
ii libdb4.4 4.4.20-11 Berkeley v4.4 Database Libraries [
ii libebook1.2-9 1.12.0-1 Client library for evolution addre
ii libecal1.2-7 1.12.0-1 Client library for evolution calen
ii libedata-book1.2-2 1.12.0-1 Backend library for evolution addr
ii libedata-cal1.2-6 1.12.0-1 Backend library for evolution cale
ii libedataserver1.2-9 1.12.0-1 Utility library for evolution data
ii libegroupwise1.2-13 1.12.0-1 Client library for accessing group
ii libgconf2-4 2.20.0-1 GNOME configuration database syste
ii libglib2.0-0 2.14.2-1 The GLib library of C routines
ii libgnome2-0 2.20.0-1 The GNOME 2 library - runtime file
ii libgnomevfs2-0 1:2.20.0-3 GNOME Virtual File System (runtime
ii libgnutls13 2.0.1-1 the GNU TLS library - runtime libr
ii libkrb53 1.6.dfsg.3~beta1-1 MIT Kerberos runtime libraries
ii libldap2 2.1.30.dfsg-13.5 OpenLDAP libraries
ii libnspr4-0d 4.6.7-1 NetScape Portable Runtime Library
ii libnss3-0d 3.11.7-1 Network Security Service libraries
ii liborbit2 1:2.14.7-0.1 libraries for ORBit2 - a CORBA ORB
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libsoup2.2-8 2.2.101-1 an HTTP library implementation in
ii libxml2 2.6.30.dfsg-2 GNOME XML library
ii zlib1g 1:1.2.3.3.dfsg-6 compression library - runtime
evolution-data-server recommends no packages.
-- no debconf information
-------------- next part --------------
138c138
< { "zh_CN.euc", "gb18030" },
---
> { "zh_CN.euc", "gb2312" },
140c140
< { "euc-cn", "gb18030" },
---
> { "euc-cn", "gb2312" },
144,147c144,146
< { "gb2312-0", "gb18030" },
< { "gb2312.1980-0", "gb18030" },
< { "gb-2312", "gb18030" },
< { "gb2312", "gb18030" },
---
> { "gb2312-0", "gb2312" },
> { "gb2312.1980-0", "gb2312" },
> { "gb-2312", "gb2312" },
597d595
< { "gb18030", "zh" },
598a597
> { "gb18030", "zh" },
More information about the Pkg-evolution-maintainers
mailing list