Bug 144609 - Load attachments on demand is broken
Summary: Load attachments on demand is broken
Status: RESOLVED DUPLICATE of bug 143237
Alias: None
Product: kmail
Classification: Applications
Component: mime (show other bugs)
Version: 1.9.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
Depends on:
Reported: 2007-04-24 16:22 UTC by David Jander
Modified: 2007-04-29 19:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description David Jander 2007-04-24 16:22:04 UTC
Version:           1.9.5 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

The "load attachments on demand" feature for IMAP seems to be broken (still) in version 1.9.5 of kmail. Here's a description of my system:

- 64-bit Kubuntu 6.10 with KDE 3.5.5 on an AMD64 single core (beryl running).
- Imap server: Cyrus IMAP cyrus-imapd-2.2.8-6.5 on a SuSE-9.2 box.

Reproduction of the problem:

1.- Turn on "load attachments on demand".
2.- Receive an e-mail message on an IMAP account with an attachment. Not all e-mails trigger this problem, but here is part of the source of a message which DOES trigger the problem:

------ CUT HERE ----------
.... (various delivery-path headers) ...
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: application/x-gzip;
Content-Transfer-Encoding: base64
Content-Description: help_en.html.tar.gz
Content-Disposition: attachment;
Subject: help
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 24 Apr 2007 15:24:51 +0200
Message-ID: <CFA8FB101903E144A42CBB375CCE888503FB49@pan03.pan.lokaal>
Thread-Topic: help
thread-index: AceGc/AoSkKckcAqR5mQ4s7k1WvDMQ==
X-Virus-Scanned: by amavisd-new at ZZZZZ
X-Length: 5911
X-UID: 30479

..... (more base64 code)...
----------- CUT HERE --------------

3.- Click on e-mail; you'll see just an icon with the file help_en.html.tar.gz.
4.- Right click on e-mail, choose "save as..." (or left-click and open with ark for instance)
5.- Save attachment (or open it).
6.- Attachment is only 153 bytes long (ought to be a few kb though).

How to work around the bug:

1.- Turn off "load attachments on demand".
2.- Repeat from point 2 above. Everything is fine now.

Further thoughts:

I know this isn't new (there has been a similar bug in version 1.6 or something like that).
Obviously it wasn't fixed correctly or this is just a new bug.
I have had this problem with a few messages, I thought that once or twice closing and re-starting kmail fixed it (can't remember for sure though).
What's suspicious about the e-mail shown above, is that it is basically just an attachment, without a multipart container, but besides that, it looks pretty much ok.
Comment 1 Thomas McGuire 2007-04-29 19:59:43 UTC
I don't think the load-on-demand setting is the problem here, see bug 143237.

*** This bug has been marked as a duplicate of 143237 ***