[imp] IMP do not show attachment name with umlaute

Michael M Slusarz slusarz at horde.org
Mon Oct 14 22:57:58 UTC 2013


Quoting Samuel Wolf <samuel at sheepflock.de>:

> Hi,
>
> receive sometimes mails with a attachment name which contains a  
> umlaut, but IMP do not show the attachments name  
> (no_attachment_name.png).
>
> %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<
>   Content-Type: text/plain; charset="windows-1252"
>   Content-Transfer-Encoding: Quoted-Printable
> [...]
>   Content-Type: application/octet-stream;
> 	name="Rechnung_Z�hlervertrag_97775___20131002_0904.PDF"; type=Unknown
>   Content-Transfer-Encoding: BASE64
>   Content-Disposition: attachment;
> 	filename="Rechnung_Z�hlervertrag_97775___20131002_0904.PDF"
> %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<
>
>
> If i send the attachment in a new mail to myself, IMP show the  
> attachment name, but this message is UTF-8 (attachment_name_ok.png).
>
> %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<
>   Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
>   Content-Disposition: inline
>   Content-Transfer-Encoding: 8bit
> [...]
>   Content-Type: application/pdf;
>    name*=utf-8''Rechnung_Z%C3%A4hlervertrag_97775___20131002_0904.PDF
>   Content-Disposition: attachment; size=79556;
>    filename*=utf-8''Rechnung_Z%C3%A4hlervertrag_97775___20131002_0904.PDF
>   Content-Transfer-Encoding: base64
> %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<
>
> Problem on Horde side or sender side?

sender.  You can't send non-ASCII characters in mail headers.

We try to decipher the data from these broken clients, but it is not  
100% successful (since the non-ASCII characters could very well have  
been altered in transport).  Generally, we run the data through both a  
windows-1252 conversion and a UTF-8 conversion to see if that fixes  
things.  If your data was truly in windows-1252, then this would have  
been automatically fixed for you.  The fact that it isn't tells me  
that the non-ASCII character has been altered since it was sent.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list