<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>144609</bug_id>
          
          <creation_ts>2007-04-24 16:22:04 +0000</creation_ts>
          <short_desc>Load attachments on demand is broken</short_desc>
          <delta_ts>2007-04-29 19:59:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>mime</component>
          <version>1.9.5</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>143237</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="David Jander">djander</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>522357</commentid>
    <comment_count>0</comment_count>
    <who name="David Jander">djander</who>
    <bug_when>2007-04-24 16:22:04 +0000</bug_when>
    <thetext>Version:           1.9.5 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

The &quot;load attachments on demand&quot; feature for IMAP seems to be broken (still) in version 1.9.5 of kmail. Here&apos;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 &quot;load attachments on demand&quot;.
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;
  name=&quot;help_en.html.tar.gz&quot;
Content-Transfer-Encoding: base64
Content-Description: help_en.html.tar.gz
Content-Disposition: attachment;
	filename=&quot;help_en.html.tar.gz&quot;
Subject: help
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 24 Apr 2007 15:24:51 +0200
Message-ID: &lt;CFA8FB101903E144A42CBB375CCE888503FB49@pan03.pan.lokaal&gt;
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: help
thread-index: AceGc/AoSkKckcAqR5mQ4s7k1WvDMQ==
From: XXXXXXXX
To: YYYYYYY
X-Virus-Scanned: by amavisd-new at ZZZZZ
X-Length: 5911
X-UID: 30479

H4sICB4ELkYAA2trU1pTYi50YXIA7Rtdb9w2Mq/dX8H45Rwg0dpJLgGKjYHESRsDsc9ofQju6cCV
uLusJVJHUna3v74zpD5IfTi25LQPJwLxemfI4cxwOF90dizN/8tEtDNZ+uQ7jSMYb968xs/jt/98
Zb8fv7bfYbw6On55/OT46M3xq9eAP3r7BAAvX799Qo6+F0P+KLShipAn/EbeqYBCM6X/Cob+2rF6
..... (more base64 code)...
----------- CUT HERE --------------

3.- Click on e-mail; you&apos;ll see just an icon with the file help_en.html.tar.gz.
4.- Right click on e-mail, choose &quot;save as...&quot; (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 &quot;load attachments on demand&quot;.
2.- Repeat from point 2 above. Everything is fine now.

Further thoughts:
=================

I know this isn&apos;t new (there has been a similar bug in version 1.6 or something like that).
Obviously it wasn&apos;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&apos;t remember for sure though).
What&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523234</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2007-04-29 19:59:43 +0000</bug_when>
    <thetext>I don&apos;t think the load-on-demand setting is the problem here, see bug 143237.

*** This bug has been marked as a duplicate of 143237 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>