Bug 100862 - umlauts in attached filenames mangled with IMAP "load on demand"
Summary: umlauts in attached filenames mangled with IMAP "load on demand"
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Unmaintained
Component: IMAP (show other bugs)
Version: 1.8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-05 03:26 UTC by Jens
Modified: 2015-04-12 10:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2005-03-05 03:26:22 UTC
Version:           1.8 (using KDE 3.4.0 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.11-default

Hello,

When I use "load attachments on demand", umlauts in attached filenames are not decoded within KMail, and two "weird" chars are displayed for each umlaut. When I press "v" to view the source, the source and the mail body magically convert the umlauts to the proper characters.

When my machine is very busy, you can actually see the umlauts in the attachment filenames displayed *correctly* for a split-second, then converted into the incorrect value.

The strange thing is, neither this mail (received from GMX) nor the file names are encoded in UTF-8 when you view the mail raw text by SSHing on the mail server and using 'less -r' on the Maildir file.

Here are the headers of the mail:

Return-Path: <x@gmx.net>
X-Original-To: x@x.de
Delivered-To: x@x.de
Received: from localhost (localhost [127.0.0.1])
        by master.rb-hosting.de (Postfix) with ESMTP id E55D414B40
        for <x@x.de>; Fri,  4 Mar 2005 20:25:50 +0100 (CET)
Received: from master.rb-hosting.de ([127.0.0.1])
        by localhost (master.rb-hosting.de [127.0.0.1]) (amavisd-new, port 10024)
        with LMTP id 32504-01-3 for <x@x.de>;
        Fri, 4 Mar 2005 20:25:50 +0100 (CET)
Received: from mail.gmx.net (pop.gmx.de [213.165.64.20])
        by master.rb-hosting.de (Postfix) with SMTP id B0913147E6
        for <x@x.de>; Fri,  4 Mar 2005 20:25:49 +0100 (CET)
Received: (qmail 9309 invoked by uid 0); 4 Mar 2005 19:25:48 -0000
Received: from 80.171.133.117 by www67.gmx.net with HTTP;
        Fri, 4 Mar 2005 20:25:48 +0100 (MET)
Date: Fri, 4 Mar 2005 20:25:48 +0100 (MET)
From: x@gmx.net
To: x@x.de
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="========GMXBoundary143671109964348"
Subject: Fwd: Praktikum
X-Priority: 3 (Normal)
X-Authenticated: #8169515
Message-ID: <14367.1109964348@www67.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian GNU/Linux) at master.rb-hosting.de

This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

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

--- Weitergeleitete Nachricht / Forwarded Message ---
Date: Tue, 22 Feb 2005 19:23:25 +0100
From: "Jan M." <x@x.com>
To: x
Subject: Praktikum

Ich hab mal etwas von unserem Seniorenheim Dokumentiert und eingescant.
Vielleicht möchte der ein oder andere es haben, sonst löscht es einfach.
Gruß und noch weiterhin viel Spaß im Praktikum
X



--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
--========GMXBoundary143671109964348
Content-Type: application/msword; name="10 Minuten Aktivität mit Verwirrten.doc"
Content-Disposition: attachment; filename="10 Minuten Aktivität mit Verwirrten.doc"

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAB
AAAAMQAAAAAAAAAAEAAAMwAAAAEAAAD+////AAAAADAAAAD/////////////
(etc)
Comment 1 Carsten Burghardt 2005-03-05 13:35:55 UTC
> Content-Type: application/msword; name="10 Minuten Aktivität mit
> Verwirrten.doc" Content-Disposition: attachment; filename="10 Minuten
> Aktivität mit Verwirrten.doc"

The only encoding I could find in this email is iso-8859-1 but this filename 
is not correctly encoded (it would be 
"iso-8859-1''10%20Minuten%20Aktivit%E4t%20mit%20Verwirrten%2Edoc"). Can you 
provide the email? What is the locale of your user ($LANG)?


Carsten

Comment 2 Jens 2005-03-06 20:09:21 UTC
Am Samstag, 5. März 2005 13:35 schrieb Carsten Burghardt:

> The only encoding I could find in this email is iso-8859-1 but this
> filename is not correctly encoded (it would be
> "iso-8859-1''10%20Minuten%20Aktivit%E4t%20mit%20Verwirrten%2Edoc"). Can
> you provide the email? What is the locale of your user ($LANG)?

I am using the German locale in a more or less default SuSE 9.2 setup. I 
can provide screenshots if necessary. I attached the email in question to 
a mail to you in private (please don't make it public in the BTS).

Thanks!


Comment 3 Carsten Burghardt 2005-03-07 11:41:31 UTC
> I am using the German locale in a more or less default SuSE 9.2 setup.

AFAIK suse switched their default locale to UTF-8.

Comment 4 Jens 2005-03-07 15:16:55 UTC
Am Montag, 7. März 2005 11:41 schrieb Carsten Burghardt:


> > I am using the German locale in a more or less default SuSE 9.2 setup.
>
> AFAIK suse switched their default locale to UTF-8.

Yes, I disabled that. I have too many old documents in ISO8859-1(5) lying 
around.


Comment 5 Laurent Montel 2015-04-12 10:00:42 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.