Bug 351838

Summary: akonadi imap resource fails with "bad date in append" in 15.08.0
Product: [Frameworks and Libraries] Akonadi Reporter: Daniel Eklöf <daniel>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdepim-bugs, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniel Eklöf 2015-08-27 06:56:52 UTC
With the new kf5 based akonadi IMAP resource, I'm getting the following failure when sending a mail (which is also saved in [imap]/Sent):

akonadi_imap_resource[1193]: log_imapresource: "Append failed, server replied: A000028 BAD unable to handle request: Unparseable date: 27-aug.-2015 06:33:10 +0000 "

The resource is connected to davmail (running on the same host). The error message from davmail is:

davmail.sh[507]: 2015-08-27 08:33:10,562 ERROR [ImapConnection-39253] davmail  - Unparseable date: "27-aug.-2015 06:33:10 +0000"
davmail.sh[507]: java.text.ParseException: Unparseable date: "27-aug.-2015 06:33:10 +0000"
davmail.sh[507]: at java.text.DateFormat.parse(DateFormat.java:366)
davmail.sh[507]: at davmail.imap.ImapConnection.run(ImapConnection.java:497)

Though I see the same kind of failure with IMAP resources connected to non-local, non-davmail based servers.

This *may* be the cause of these later failures:

akonadi_imap_resource[1191]: The item sync is being rolled-back.
akonadi_imap_resource[1191]: The item sync is being rolled-back.
akonadi_imap_resource[1191]: The item sync is being rolled-back.
akonadi_imap_resource[1191]: The item sync is being rolled-back.
akonadi_imap_resource[1191]: The item sync is being rolled-back.
akonadi_imap_resource[1191]: Invalid command, the world is going to end!
akonadi_imap_resource[1191]: "Cannot connect to the Akonadi service."
akonadi_imap_resource[1191]: Socket error occurred: "QLocalSocket: Remote closed"
akonadi_imap_resource[1191]: Error during ItemSync:  "Cannot connect to the Akonadi service."

My locale, in case it matters (everything but LC_CTYPE and LC_MESSAGES are sv_SE.UTF-8):
LANG=sv_SE.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=


Reproducible: Always
Comment 1 Daniel Eklöf 2015-08-27 18:25:29 UTC
It also appears that the imap resource starts crashing after seeing this failure (as in, crashes, restarts, then - at the next poll perhaps? - crashes again).

It seems the only way to get rid of the crashes is to remove all instances of the sent email, clear the akonadi cache and restart everything.
Comment 2 Daniel Eklöf 2015-09-05 14:42:00 UTC

*** This bug has been marked as a duplicate of bug 352223 ***