Version: 1.4.80 (using Devel) OS: Linux After I've sent an email, the IMAP resource uploads the email just sent to the "Sent Items" folder. However, it sends some bad commands afterwards: IMAP log: S: A000519 OK APPEND completed. C: A000520 SELECT "Sent Items" S: * 4683 EXISTS S: * 1 RECENT S: * FLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) ] S: * OK UIDVALIDITY value [ UIDVALIDITY 555 ] S: * OK The next unique identifier value [ UIDNEXT 8452 ] S: A000520 OK SELECT completed. [ READ-WRITE ] C: A000521 UID SEARCH NEW UID 8451:* S: * SEARCH S: A000521 OK SEARCH completed. C: A000522 UID STORE FLAGS (\Seen $SENT) S: A000522 BAD Command Argument Error. 11 The new message got UID 8451, but the server didn't report it in the APPEND command. The SEARCH command returned 0 results. The bad command is the UID STORE one, which forgets to pass the UID to the server (probably because of the 0 results in SEARCH). Note the two spaces between STORE and FLAGS. Reproducible: Always OS: Linux (i686) release 2.6.35.2-server-1mnb Compiler: gcc
Probably causes bug 264266.
adding as a showstopper
Git commit 34f1b3e879fff83f6fdc665afea1060d7d411bdd by Volker Krause. Committed on 21/04/2011 at 11:18. Pushed by vkrause into branch 'master'. Recover from unknown UID after APPEND or COPY. Currently, if unable to determine the UID of a message after an APPEND or COPY command, we abort the task and leave the Akonadi item with an empty RID. During the next sync, the message we added to the server is discovered and downloaded, duplicating it locally. Items with empty RIDs are protected against deletion during a sync, since they are assumed to not be on the server yet. This is a safety feature, but gets in to the way of automatic recovery here. So, this patch fixes this by assigning an arbitrary random RID in this case. Note that this only happens if all UID detection attempts fail, not if e.g. the actual APPEND or COPY failed. Assuming that those commands report errors correctly, this should be safe. BUG: 264266 CCBUG: 259214 REVIEW: 101147 M +12 -10 resources/imap/additemtask.cpp M +10 -8 resources/imap/moveitemtask.cpp M +14 -0 resources/imap/tests/testadditemtask.cpp M +28 -0 resources/imap/tests/testmoveitemtask.cpp http://commits.kde.org/kdepim-runtime/34f1b3e879fff83f6fdc665afea1060d7d411bdd
Please retest this. It will likely be re-classified as not as release blocker if no one re-confirms it.
Looks like it's fixed. I cannot see the bad commands anymore.