Summary: | [Exchange 2013] Saving sent mail to IMAP folder: A000007 BAD Command Argument Error. 12 on UID STORE without parameters | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Martin Steigerwald <martin.steigerwald> |
Component: | IMAP resource | Assignee: | Christian Mollekopf <chrigi_1> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdepim-bugs, m.krasilnikov, vkrause |
Priority: | NOR | ||
Version: | 5.2.0 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kdepim-runtime/1302bbba09461574c57c8e21c740e3f157b4527c | Version Fixed In: | 5.4.1 |
Sentry Crash Report: |
Description
Martin Steigerwald
2016-08-23 09:44:55 UTC
I intend to try to access Exchange server directly instead of by proxy to determine whether its a proxy issue. I also created IMAP log. Here is what I think the relevant excerpt of it: C: A000022 SELECT "INBOX" S: * 380 EXISTS S: * 0 RECENT S: * FLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) ] S: * OK Is the first unseen message [ UNSEEN 251 ] S: * OK UIDVALIDITY value [ UIDVALIDITY 14 ] S: * OK The next unique identifier value [ UIDNEXT 21544 ] S: A000024 OK SELECT completed. [ READ-WRITE ] C: A000025 APPEND "Sent Items" (\Seen) "23-Aug-2016 10:02:29 +0000" {464} S: + Ready for additional command text. C: From: Martin Steigerwald <[…]@teamix.de> To: Martin <[…]@teamix.de> Subject: Testmail Date: Tue, 23 Aug 2016 12:02:29 +0200 Message-ID: <1732774.ZES84pjKtC@merkaba> Organization: teamix GmbH X-KMail-Identity: […] X-KMail-Dictionary: de User-Agent: KMail/5.2.3 (Linux/4.8.0-rc2-tp520-btrfstrim+; KDE/5.23.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" S: A000025 OK APPEND completed. [ APPENDUID 11 2420 ] C: A000026 SELECT "Sent Items" S: * 2379 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 Is the first unseen message [ UNSEEN 1921 ] S: * OK UIDVALIDITY value [ UIDVALIDITY 11 ] S: * OK The next unique identifier value [ UIDNEXT 2421 ] S: A000026 OK SELECT completed. [ READ-WRITE ] C: A000027 UID STORE 2420 +FLAGS (\Seen) S: * 2379 FETCH ( FLAGS (\Seen \Recent) ) S: A000027 OK STORE completed. C: A000028 UID STORE 2420 S: A000028 BAD Command Argument Error. 12 C: A000029 UID STORE 2420 S: A000029 BAD Command Argument Error. 12 C: A000030 SELECT "INBOX" S: * 381 EXISTS S: * 0 RECENT S: * FLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Seen \Answered \Flagged \Deleted \Draft $MDNSent ) ] S: * OK Is the first unseen message [ UNSEEN 251 ] S: * OK UIDVALIDITY value [ UIDVALIDITY 14 ] S: * OK The next unique identifier value [ UIDNEXT 21545 ] It seems either proxy or Exchange does not like the additional UID STORE commands. Why Akonadi issues UID STORE mutiple times (I am no expert of IMAP protocol). I have something similar. We using Exchange without any proxies. Git commit 1302bbba09461574c57c8e21c740e3f157b4527c by Daniel Vrátil. Committed on 07/01/2017 at 12:37. Pushed by dvratil into branch 'Applications/16.12'. IMAP: don't start STORE job with no flags fromAkonadiToSupportedImapFlags() can filter out all the flags that we are trying to append/remove which leads to UID STORE command with not FLAGS attributes, which is not RFC conformant and is rejected by some servers. FIXED-IN: 5.4.1 M +25 -10 resources/imap/changeitemsflagstask.cpp https://commits.kde.org/kdepim-runtime/1302bbba09461574c57c8e21c740e3f157b4527c |