Package: mutt
Version: 1.5.6-20040907+3
Severity: normal

Hi,

I noticed I had a strange charset error when signing a forwarded
message. In my example the original message has the following headers:

    Content-Type: text/plain; charset=iso-8859-1
    Content-Transfer-Encoding: 8bit

but the message forwarded as attachment has those headers changed to:

    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: quoted-printable

where the charset is wrong (the charset conversion in the attached
message did not actually happen).

Steps to reproduce the problem:

1) launch mutt with an empty muttrc then manually set mime_forward=yes.
2) forward a message containing accentuated characters and iso-8859-1
   charset.
3) sign your forward.

Test case mbox included.

Regards,

Laurent.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.10-ac11-jalta
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages mutt depends on:
ii  exim4                       4.44-2       metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tr 4.44-2       lightweight exim MTA (v4) daemon
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libgnutls11                 1.0.16-13    GNU TLS library - runtime library
ii  libidn11                    0.5.2-3      GNU libidn library, implementation
ii  libncursesw5                5.4-4        Shared libraries for terminal hand
ii  libsasl2                    2.1.19-1.5   Authentication abstraction library

-- no debconf information
From [EMAIL PROTECTED] Wed Feb 16 14:16:56 2005
Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Wed, 16 Feb 2005 14:16:56 +0100
Received: from laurent by tortoise with local (Exim 4.44)
        id 1D1P32-00035f-Ox
        for [EMAIL PROTECTED]; Wed, 16 Feb 2005 14:16:56 +0100
Date: Wed, 16 Feb 2005 14:16:56 +0100
From: Laurent Fousse <[EMAIL PROTECTED]>
To: Laurent Fousse <[EMAIL PROTECTED]>
Subject: Incoming iso-8859-1.
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.6+20040907i
X-SpamProbe: GOOD 0.0003207 cfcd1205eb2aa10bdb08035ed1a5f3e3
Status: RO
Content-Length: 44

Some random text. With non ascii chars: é.


From [EMAIL PROTECTED] Wed Feb 16 14:17:22 2005
Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Wed, 16 Feb 2005 14:17:22 +0100
Received: from laurent by tortoise with local (Exim 4.44)
        id 1D1P3S-000362-Q4
        for [EMAIL PROTECTED]; Wed, 16 Feb 2005 14:17:22 +0100
Date: Wed, 16 Feb 2005 14:17:22 +0100
From: Laurent Fousse <[EMAIL PROTECTED]>
To: Laurent Fousse <[EMAIL PROTECTED]>
Subject: [EMAIL PROTECTED]: Incoming iso-8859-1.]
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="m1UC1K4AOz1Ywdkx"
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
X-SpamProbe: GOOD 0.0000049 75857c29e925bf476436c39237609606
Status: RO
Content-Length: 1510


--m1UC1K4AOz1Ywdkx
Content-Type: multipart/mixed; boundary="C94crkcyjafcjHxo"
Content-Disposition: inline


--C94crkcyjafcjHxo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Signed forward.

--C94crkcyjafcjHxo
Content-Type: message/rfc822
Content-Disposition: inline

Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Wed, 16 Feb 2005 14:16:56 +0100
Received: from laurent by tortoise with local (Exim 4.44)
        id 1D1P32-00035f-Ox
        for [EMAIL PROTECTED]; Wed, 16 Feb 2005 14:16:56 +0100
Date: Wed, 16 Feb 2005 14:16:56 +0100
From: Laurent Fousse <[EMAIL PROTECTED]>
To: Laurent Fousse <[EMAIL PROTECTED]>
Subject: Incoming iso-8859-1.
Message-ID: <[EMAIL PROTECTED]>
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
X-SpamProbe: GOOD 0.0003207 cfcd1205eb2aa10bdb08035ed1a5f3e3
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline; filename=mutt-tortoise-1000-11817-42
Content-Transfer-Encoding: quoted-printable

Some random text. With non ascii chars: =E9.


--C94crkcyjafcjHxo--

--m1UC1K4AOz1Ywdkx
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCE0fiTUld8sb4OVwRAiy9AKCPN8eozkpDBaqL6nCvNNOnC+Ht2wCfQSgx
I0pXTyF291IBYhOmH53tstQ=
=7eBD
-----END PGP SIGNATURE-----

--m1UC1K4AOz1Ywdkx--


Attachment: signature.asc
Description: Digital signature

Reply via email to