Summary: | kmail loses mail body and attachments when moving mails from imap to local folder | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | ian |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.7.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
email
snapshot of kmail with lost mail content |
Description
ian
2005-02-08 14:14:43 UTC
Created attachment 9481 [details]
email
This is the forwarded mail that remained in my sent box. The original mail had
all content, except headers, lost when I moved it from my IMAP inbox to my
local folder.
Created attachment 9482 [details]
snapshot of kmail with lost mail content
As you can see in this snapshot, there are several mails where the attachments
and body have been lost where the sender was dora..... These mails varied
between approx 50Kb to 8Mb in size.
It may also be important info - I leave my machine running 24 hours, and usually kmail stays open the whole time. What I do know is that if I move the mail immediately after first opening it, everything is moved as normal. The same problem here with kmail 1.8. Maybe this is important: The folders to sort the mails here are in mbox format. This is what our test show: Haeder and attachments are lost by moving the mail from inbox to an other folder if the attachments were SAVED out of the inbox befor moving (no matter if the folders are in mbox or mdir format). Viewing only don't causes the mistake. So a temporary work around is to move the mail first and than store the attachments to the local disk. CVS commit by burghard: Do not set the message as complete but do not pass it to the parent command. That way the message is not changed and it should not cause problems anymore. Will backport. BUGS:98845 M +1 -4 kmcommands.cpp 1.206 --- kdepim/kmail/kmcommands.cpp #1.205:1.206 @@ -2112,9 +2112,6 @@ KMSaveAttachmentsCommand::KMSaveAttachme KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( QWidget *parent, QPtrList<partNode>& attachments, KMMessage *msg, bool encoded ) - : KMCommand( parent, msg ), mImplicitAttachments( false ), - mEncoded( encoded ) + : KMCommand( parent ), mImplicitAttachments( false ), mEncoded( encoded ) { - // do not load the complete message but only parts - msg->setComplete( true ); for ( QPtrListIterator<partNode> it( attachments ); it.current(); ++it ) { mAttachmentMap.insert( it.current(), msg ); This has hapened to me with version 1.8.2 recently. I moved a message (containing attachments) from an imap folder to a local folder and lost the message body and all attachments. |