Bug 358559 - akonadi_imap_resource incorrectly handles RFC 5464
Summary: akonadi_imap_resource incorrectly handles RFC 5464
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-25 21:51 UTC by jacob.becker
Modified: 2017-05-04 18:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jacob.becker 2016-01-25 21:51:33 UTC
while talking to a cyrus 2.5 imap server akonadi_imap_resource constantly fails to gather metadata.
akonadi_imap_resource_1(15616) RetrieveCollectionMetadataTask::onGetMetaDataDone: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000103 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) "

this messages can easily seen if akonadiserver ist startet or restartet in a terminal.



Reproducible: Always

Steps to Reproduce:
1. start terminal
2. akonadictl restart (inside the terminal)


Actual Results:  
dozens of 
" akonadi_imap_resource_1(15616) RetrieveCollectionMetadataTask::onGetMetaDataDone: Get metadata failed: ..."
are shown.

Expected Results:  
the imap command GETMETADATA should be used right

i can see no directly impact of imap functionality in akonadi. This _could_ be a cosmetical thing.
Comment 1 Alexander 2017-02-07 17:30:12 UTC
Same here, KDE Applications 16.12.1 on Tumbleweed, IMAP-Server is secureimap.t-online.de . 

Getting hundreds of messages like:

org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000091 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "

I'm not sure, whether this is the cause, but I can't delete emails locally!
Comment 2 Daniel Vrátil 2017-02-23 17:57:17 UTC
Could you please run the following in terminal:

export KIMAP_LOGFILE=/tmp/kimap.log
akonadictl restart


Then reproduce the issue again (wait until you see the error in terminal). After that look into /tmp folder, you should see several files starting with kimap.log - find the one that contains the error line and paste it here. Please also include a few (5 or so) lines above the error. If there are any sensitive information (folder names for instance), you can sanitize them.
Comment 3 Alexander 2017-02-24 10:12:55 UTC
(In reply to Daniel Vrátil from comment #2)
> Could you please run the following in terminal:
> 
> export KIMAP_LOGFILE=/tmp/kimap.log
> akonadictl restart
> 
> 
> Then reproduce the issue again (wait until you see the error in terminal).
> After that look into /tmp folder, you should see several files starting with
> kimap.log - find the one that contains the error line and paste it here.
> Please also include a few (5 or so) lines above the error. If there are any
> sensitive information (folder names for instance), you can sanitize them.

Done as you suggested + ctrl-l in kmail to fetch emails.

Content of kimap.log.32676.1:

C: A000004 CAPABILITY
S: * CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN APPENDLIMIT=140000000
S: A000004 OK CAPABILITY completed
C: A000005 NAMESPACE
S: * NAMESPACE ( ("" "/") ) ( ) ( )
S: A000005 OK NAMESPACE completed
C: A000006 ID ("name" "Kontact IMAP Resource")
S: A000006 OK ID completed
C: A000007 LIST "" *
S: * LIST ( \Drafts \HasNoChildren ) / Entw&APw-rfe
S: * LIST ( \Sent \HasNoChildren ) / Gesendete Objekte
S: * LIST ( \HasNoChildren ) / INBOX
S: * LIST ( \Trash \HasNoChildren ) / Papierkorb
S: * LIST ( \HasNoChildren ) / Safe
S: * LIST ( \Junk \HasNoChildren ) / Spam
S: * LIST ( \HasNoChildren ) / Versendet
S: A000007 OK LIST completed
C: A000008 SELECT "INBOX"
S: * 332 EXISTS
S: * 0 RECENT
S: * FLAGS ( \Answered \Flagged \Deleted \Seen \Draft $FORWARDED )
S: * OK Unlimited [ PERMANENTFLAGS ( \Answered \Flagged \Draft \Deleted \Seen $FORWARDED \* )  ]
S: * OK Predicted next UID [ UIDNEXT 6075  ]
S: * OK UIDs valid [ UIDVALIDITY 1320704810  ]
S: A000008 OK SELECT completed [ READ-WRITE  ]
C: A000009 IDLE
S: + idling

=======================

And on the console window (in this case: yakuake):

AW@linux-k2bd:~> export KIMAP_LOGFILE=/tmp/kimap.log
AW@linux-k2bd:~> akonadictl restart &
[1] 32598
AW@linux-k2bd:~> Settings(0x19c3500)
Settings(0x1b92050)
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_pop3_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_archivemail_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_notes_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_birthdays_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_followupreminder_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_contacts_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_akonotes_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_migration_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_imap_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_newmailnotifier_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_contacts_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_sendlater_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_akonotes_resource' exited normally...
org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_indexing_agent" stopped unexpectedly ( "Process crashed" )
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_indexing_agent' crashed. No restart!
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_mailfilter_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_maildispatcher_agent' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_pop3_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_imap_resource' exited normally...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_maildir_resource' exited normally...
KCrash: Application 'akonadiserver' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 65 and type 'Read', disabling...
QSocketNotifier: Invalid socket 69 and type 'Read', disabling...
QSocketNotifier: Invalid socket 73 and type 'Read', disabling...
QSocketNotifier: Invalid socket 76 and type 'Read', disabling...
QSocketNotifier: Invalid socket 67 and type 'Read', disabling...
QSocketNotifier: Invalid socket 75 and type 'Read', disabling...
QSocketNotifier: Invalid socket 71 and type 'Read', disabling...
QSocketNotifier: Invalid socket 77 and type 'Read', disabling...
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 218 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 203 and type 'Read', disabling...
QProcess: Destroyed while process ("akonadiserver") is still running.
org.kde.pim.akonadicontrol: ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
org.kde.pim.akonadicontrol: Application 'akonadiserver' crashed. No restart!
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: mysqld for Akonadi is already running, trying to connect to it.
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable                              OK
akonadi.relationtypetable                          OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
The hash has changed.
false
org.kde.pim.akonadicontrol: "AgentManager::agentInstanceSynchronizeCollection"  Agent instance  "akonadi_imap_resource_2"  has no resource interface!
org.kde.pim.akonadiserver: "Cannot connect to agent instance with identifier 'akonadi_imap_resource_2', error message: ''"
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.1413'
org.kde.pim.kcalcore: The incidence didn't have any UID! Report a bug  to the application that generated this file. 

org.kde.pim.akonadiserver: Received ModifySubscription command before RegisterSubscriber
org.kde.pim.akonadicore: "QLocalSocket: Remote closed" "/tmp/akonadi-AW.P0kd6E/akonadiserver-ntf.socket"
Pass a valid window to KWallet::Wallet::openWallet().
Pass a valid window to KWallet::Wallet::openWallet().
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: 
org.kde.akonadi.ETM: Subtree:  17 QSet(17, 23, 22, 21, 20, 24, 19, 18)
org.kde.akonadi.ETM: Subtree:  1 QSet(1, 90)
org.kde.akonadi.ETM: Subtree:  73 QSet(84, 75, 74, 73, 79, 78, 77, 76, 83, 82, 81, 80, 87, 86)
org.kde.akonadi.ETM: Subtree:  28 QSet(85, 89, 88, 95, 94, 93, 92, 31, 30, 29, 28, 96, 35, 32, 39, 38, 37, 36, 42, 41, 47, 46, 45, 44, 51, 50, 49, 48, 55, 54, 53, 52, 59, 58, 57, 56, 62, 61, 65, 60, 68)
org.kde.akonadi.ETM: Fetch job took  39 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 65
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: Fetch job took  41 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 13
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: 
org.kde.akonadi.ETM: Subtree:  1 QSet(1, 90)
org.kde.akonadi.ETM: Subtree:  17 QSet(24, 21, 20, 23, 22, 17, 19, 18)
org.kde.akonadi.ETM: Subtree:  73 QSet(84, 87, 86, 81, 80, 83, 82, 77, 76, 79, 78, 73, 75, 74)
org.kde.akonadi.ETM: Subtree:  28 QSet(93, 92, 95, 29, 94, 89, 28, 88, 31, 30, 68, 65, 53, 52, 55, 54, 49, 48, 51, 50, 61, 60, 62, 57, 56, 59, 58, 37, 36, 96, 39, 38, 32, 35, 45, 44, 47, 46, 41, 42, 85)
org.kde.akonadi.ETM: Fetch job took  130 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 65
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: Fetch job took  131 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 13
org.kde.akonadi.ETM: first fetched collection: "Search"
false
false
QVariant(QString, "2457023") 2457023
QVariant(QString, "2457388") 2457388
Pass a valid window to KWallet::Wallet::openWallet().
Pass a valid window to KWallet::Wallet::openWallet().
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000010 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000015 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000020 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000025 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000030 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000035 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000040 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000045 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000050 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000055 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000060 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000065 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.imapresource: Get metadata failed:  "GetMetaData fehlgeschlagen, die Serverantwort lautet: A000070 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) . "
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 173334 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 173334 ""
QVariant(QString, "2457023") 2457023
QVariant(QString, "2457388") 2457388

====================================
Comment 4 Christoph Feck 2017-03-01 00:13:15 UTC
Thanks for the update.
Comment 5 Daniel Vrátil 2017-03-09 06:59:01 UTC
Hi,

thanks for the data. Looks like you only uploaded content of one of the files, there should be (at least) two file and unfortunately, the second one is the one I really need (sorry if it wasn't clear from my initial request). Could you please check and also post content of the second file? If the file is too large, just scroll towards the end to find likes like "A000025 BAD Error in IMAP command GETMETADATA" so you can only paste the last ~10 lines around that error line. Thanks a lot.
Comment 6 Alexander 2017-03-13 13:41:12 UTC
(In reply to Daniel Vrátil from comment #5)
> Hi,
> 
> thanks for the data. Looks like you only uploaded content of one of the
> files, there should be (at least) two file and unfortunately, the second one
> is the one I really need (sorry if it wasn't clear from my initial request).
> Could you please check and also post content of the second file? If the file
> is too large, just scroll towards the end to find likes like "A000025 BAD
> Error in IMAP command GETMETADATA" so you can only paste the last ~10 lines
> around that error line. Thanks a lot.

Very well:

=========================

C: A000009 SELECT "INBOX" (CONDSTORE)
S: * OK Previous mailbox closed. [ CLOSED  ]
S: * FLAGS ( \Answered \Flagged \Deleted \Seen \Draft $FORWARDED )
S: * OK Flags permitted. [ PERMANENTFLAGS ( \Answered \Flagged \Deleted \Seen \Draft $FORWARDED \* )  ]
S: * 347 EXISTS
S: * 0 RECENT
S: * OK First unseen. [ UNSEEN 129  ]
S: * OK UIDs valid [ UIDVALIDITY 1137435429  ]
S: * OK Predicted next UID [ UIDNEXT 133022  ]
S: * OK Highest [ HIGHESTMODSEQ 46648  ]
S: A000009 OK Select completed ( 0.000 + 0.000 secs ) . [ READ-WRITE  ]
C: A000010 GETMETADATA (DEPTH infinity) "INBOX" (/shared)
S: A000010 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or infinity . ( RFC 5464 Section 4.2.2 ) ( 0.000 + 0.000 secs ) .
C: A000011 GETQUOTAROOT "INBOX"
S: * QUOTAROOT INBOX User quota
S: * QUOTA User quota ( STORAGE 72245 15728640 MESSAGE 4504 62000 MAILBOX 9 62 LEVEL 2 6 )
S: A000011 OK Getquotaroot completed ( 0.000 + 0.000 secs ) .
C: A000012 SELECT "INBOX.Sent" (CONDSTORE)
S: * OK Previous mailbox closed. [ CLOSED  ]
S: * FLAGS ( \Answered \Flagged \Deleted \Seen \Draft )
S: * OK Flags permitted. [ PERMANENTFLAGS ( \Answered \Flagged \Deleted \Seen \Draft \* )  ]
S: * 18 EXISTS
S: * 0 RECENT
S: * OK UIDs valid [ UIDVALIDITY 1138483383  ]
S: * OK Predicted next UID [ UIDNEXT 20  ]
S: * OK Highest [ HIGHESTMODSEQ 3  ]
S: A000012 OK Select completed ( 0.000 + 0.000 secs ) . [ READ-WRITE  ]
C: A000013 EXPUNGE
S: A000013 OK Expunge completed.


=========================
Comment 7 Daniel Vrátil 2017-03-20 23:04:26 UTC
Thanks. From the logs, it's visible that we *do* adhere to the RFC (DEPTH infinity), so it's likely a bug on the server side.

You mentioned Cyrus 2.5, but the only place where I could find the error message you are getting is in an old metadata plugin for Dovecot [0]. Now I suspect that quoting the infinity keyword might make it work, but I'm hesitant to implement it as it might break other IMAP servers.




[0] http://hg.dovecot.org/dovecot-metadata-plugin
Comment 8 Alexander 2017-03-22 15:32:17 UTC
(In reply to Daniel Vrátil from comment #7)
> Thanks. From the logs, it's visible that we *do* adhere to the RFC (DEPTH
> infinity), so it's likely a bug on the server side.
> 
> You mentioned Cyrus 2.5, but the only place where I could find the error
> message you are getting is in an old metadata plugin for Dovecot [0]. Now I
> suspect that quoting the infinity keyword might make it work, but I'm
> hesitant to implement it as it might break other IMAP servers.
> 
> 
> 
> 
> [0] http://hg.dovecot.org/dovecot-metadata-plugin

Dovecot? No, not as far as I know. I'm getting this message from the servers of the german telekom, the webinterface is email.t-online.de .
Comment 9 Daniel Vrátil 2017-04-18 22:54:14 UTC
Hi,

I registered an email account on t-online.de and I can reproduce the error. They don't mention which IMAP implementation they actually use, so it can be anything. But since the error message you get matches exactly the one in the dovecot plugin I mentioned in comment #7, I strongly suspect that is what they use.

In any case, not even quoting the "infinity" keyword seems to work.

I'm afraid that all you can do is to open a ticket with t-online.de support and tell them their IMAP implementation is broken.

* OK T-Online IMAP Proxy ready
0 LOGIN ******** *********
0 OK Name is a valid mailbox
1 CAPABILITY
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE METADATA XEXPIRE QUOTA
1 OK Capability completed.
2 GETMETADATA (DEPTH infinity) "INBOX" (/shared)
2 BAD Error in IMAP command GETMETADATA: Value 1/1 of DEPTH is not numeric and positive or "infinity". (RFC 5464 Section 4.2.2) (0.000 + 0.000 secs).
3 GETMETADATA (DEPTH 0) "INBOX" (/shared)
3 NO Iterating metadata failed (0.000 + 0.000 secs).
4 GETMETADATA (DEPTH 1) "INBOX" (/shared)
4 NO Iterating metadata failed (0.000 + 0.000 secs).
5 GETMETADATA (DEPTH 0) "INBOX" (/shared/comment)
5 OK Completed (0.000 + 0.000 secs).


Compared to a Cyrus IMAP:

* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN AUTH=LOGIN SASL-IR] Cyrus IMAP 
0 LOGIN ******** *********
0 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED AUTH=PLAIN AUTH=LOGIN X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in SESSIONID=<*************>
1 GETMETADATA (DEPTH infinity) "INBOX" (/shared)
* METADATA INBOX (/shared/thread NIL)
* METADATA INBOX (/shared/specialuse NIL)
* METADATA INBOX (/shared/sort NIL)
* METADATA INBOX (/shared/comment NIL)
* METADATA INBOX (/shared/checkperiod NIL)
* METADATA INBOX (/shared/check NIL)
* METADATA INBOX (/shared NIL)
1 OK Completed
2 GETMETADATA (DEPTH 0) "INBOX" (/shared)
* METADATA INBOX (/shared NIL)
2 OK Completed
3 GETMETADATA (DEPTH 1) "INBOX" (/shared)
* METADATA INBOX (/shared/thread NIL)
* METADATA INBOX (/shared/specialuse NIL)
* METADATA INBOX (/shared/sort NIL)
* METADATA INBOX (/shared/comment NIL)
* METADATA INBOX (/shared/checkperiod NIL)
* METADATA INBOX (/shared/check NIL)
* METADATA INBOX (/shared NIL)
3 OK Completed
4 GETMETADATA (DEPTH 0) "INBOX" (/shared/comment)
* METADATA INBOX (/shared/comment NIL)
4 OK Completed

Feel free to provide the information above in the support ticket.

I'm closing this as "invalid", because it's a provider issue and not a KIMAP/Akonadi IMAP issue. Sorry we can't be more helpful here.
Comment 10 Alexander 2017-05-04 18:48:01 UTC
Yes, you are right. German Telekom announced an update "soon", which is expected to erease the bug. And they seem to be using dovecot. Clever of you!

I'll report as soon as the error vanishes.