Bug 159142

Summary: All attachments given text/plain mimetype on IMAP accounts
Product: [Applications] kmail Reporter: Alex Merry <alex.merry>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN trunk (KDE 4)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Merry 2008-03-11 16:16:22 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                Linux

With emails of a certain size (for example, 40K and over, but not with a 7K email), all the attachments are listed as having mimetype text/plain.  This means that PDF documents and JPEG files, for example, are saved incorrectly.

The attachments show up fine when I use the webmail interface to the imap server.

Also, choosing View->View Source apparently causes the email to be read correctly, and the mimetypes given in the message pane suddenly correct themselves (for example, from text/plain to PDF Document).

The attachments are also displayed correctly when accessed from a local folder, rather than online IMAP.
Comment 1 Thomas McGuire 2008-03-13 18:14:11 UTC
Related too, or the same, as bug 158632. Will look into it.
Comment 2 Thomas McGuire 2008-03-15 20:40:44 UTC
SVN commit 785997 by tmcguire:

Fix off-by-one porting error, resulting in the wrong content-type header of a mime part.

BUG: 159142


 M  +1 -1      mimehdrline.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=785997