| Summary | encoding of attached filenames with foreign characters is not correct |
| Queue | IMP |
| Queue Version | 4.3.7 |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | slusarz (at) horde (dot) org |
| Requester | luc.germain (at) usherbrooke (dot) ca |
| Created | 09/01/2010 (5545 days ago) |
| Due | |
| Updated | 09/13/2010 (5533 days ago) |
| Assigned | |
| Resolved | 09/01/2010 (5545 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
Bug: 9212Still need quotes if data is not encoded.
http://cvs.horde.org/diff.php/framework/MIME/Attic/MIME.php?rt=horder1=1.139.4.49r2=1.139.4.50ty=u
Assigned to Michael Slusarz
Summary ⇒ encoding of attached filenames with foreign characters is not correct
State ⇒ Resolved
MIME rewrite.
http://lists.horde.org/archives/cvs/Week-of-Mon-20100830/091233.html
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ encoding of attached filenames with foreign caracters is not correct
Type ⇒ Bug
State ⇒ Unconfirmed
with IMP, the encoding does not follow exactly RFC 2231 section 4.
Here is the header sent by IMP:
--=_3pfswe3aoqg4
Content-Type: text/plain;
charset=UTF-8;
name*="utf-8''Fichier%20attach%C3%A9.txt"
Content-Disposition: attachment;
filename*="utf-8''Fichier%20attach%C3%A9.txt"
Content-Transfer-Encoding: quoted-printable
Ce fichier contient des mots avec des caract=C3=A8res accentu=C3=A9s.
--=_3pfswe3aoqg4--
The name*= and filename*= should NOT be surrounded by double quotes.
The lines should be instead:
name*=utf-8''Fichier%20attach%C3%A9.txt
and
filename*=utf-8''Fichier%20attach%C3%A9.txt
Some clients (rightfully) ignore these lines when the double quotes
are there, but they decode the name correctly when the double quotes
are removed.