Bug 325599 - Messages lost when moved to imap folder
Summary: Messages lost when moved to imap folder
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.11
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-03 19:37 UTC by Ferry
Modified: 2013-12-13 10:16 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
First log (connection) (1.86 KB, text/plain)
2013-10-04 17:06 UTC, Ferry
Details
Second log (sync mailboxes) (10.64 KB, text/plain)
2013-10-04 17:07 UTC, Ferry
Details
Third log (send, post receive) (23.20 KB, text/plain)
2013-10-04 17:09 UTC, Ferry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ferry 2013-10-03 19:37:39 UTC
I have keep replies in this folder (inbox) checked. Also the accounts sent mail is set to inbox.

Now I loose messages when:
I reply (reply lost)
Send a new mail (sent message should be in inbox but disappeared)
Move mail from another imap server to this one

The problem seems to depend on the imap server as well (happens with my providers server - telfort.nl). At our company we run dovecot, and that has no problem.

Note: the problem did not happen with KDE 4.10
Note: I am currently using KDE 4.11.2 from the Kubuntu PPA

Reproducible: Always
Comment 1 Daniel Vrátil 2013-10-04 08:58:42 UTC
Can you reproduce this data loss? If yes, please run

$ export KIMAP_LOGFILE=$HOME/kimap.log
$ akonadictl restart

This will log all IMAP communication into files in $HOME. Try to reproduce the problem (the loss), then find the related log file (look for a file with command "APPEND" and possibly a following error) and upload it here. Make sure you sanitize any sensitive data.
Comment 2 Ferry 2013-10-04 17:05:18 UTC
Hello Daniel,

I have 3 machines, 2 show this problem, all 3 have the same KDE version. COnfiguration should be the same on all 3, but somewere there must be a difference.

Logged as you specified above. I have 4 account, discarded the logs from the accounts that work Remains 3 log file for the one problematic account. The 3rd shows the problem I think.

I replied a message to myself, so the message is sent, then posted to the inbox, this is lost. Then the sent message is received in the inbox. I remove the actual receiving from the log.

Will post 3 log now.
Comment 3 Ferry 2013-10-04 17:06:44 UTC
Created attachment 82661 [details]
First log (connection)
Comment 4 Ferry 2013-10-04 17:07:49 UTC
Created attachment 82663 [details]
Second log (sync mailboxes)
Comment 5 Ferry 2013-10-04 17:09:01 UTC
Created attachment 82664 [details]
Third log (send, post receive)
Comment 6 Ferry 2013-10-04 17:13:55 UTC
Actually I think I remember this account sometimes had problems with Evolution too. The posting for the inbox was sometimes denied, but worked on a second try. Evolution however didn't delete the 'sent' message, but detected that moving to inbox failed and falls back to the local sent messages folder.
Comment 7 Kevin Ottens 2013-11-16 07:27:12 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 8 Christian Mollekopf 2013-12-13 10:16:36 UTC
I think the problem was that akonadi tried to APPEND the message to the inbox with the $SENT flag, that is not supported by your imap server (it's also non-standard). This should meanwhile have been fixed in 4.12, since flags that are not supported by the server are now removed before APPENDing the message.

See https://bugs.kde.org/show_bug.cgi?id=309946 for more information about the fixes.

Please reopen if the problems reappear.