Bug 335235 - kmail & akonadi: imap resource cannot be accessed
Summary: kmail & akonadi: imap resource cannot be accessed
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.13
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-23 10:09 UTC by hemathor
Modified: 2017-01-07 21:51 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 hemathor 2014-05-23 10:09:07 UTC
i have a dovecot imap server with 17 accounts which i want to access using kmail.

i set up the akonadi resources without any problems until i added an account with ~100.000 emails in ~30 folders and subfolders.

then suddenly i got a lot of error messages like '<account> Connection Lost' and others which i can't recall right now, and my dovecot server shows an error message for the respective account 'Disconnected: Too many invalid IMAP commands. in=758 out=1560' (the numbers differ).

especially when i start kmail and all akonadi imap resources go online, it results in a firework of these error messages for any account.

Reproducible: Always
Comment 1 hemathor 2014-05-23 13:35:09 UTC
i just started kmail and was bothered by the following different messages for each account (aka akonadi imap resource):
  '<account>: There is currently no session to the imap server available'

dovecot still complains with:
  'Disconnected: Too many invalid IMAP commands. in=758 out=1560'
(numbers vary)

if i use the akonadicontrol tool and toggle online/offline status of the respective resource, everything seems to be ok.

greetings...
Comment 2 hemathor 2014-05-24 08:57:20 UTC
in kmail: filtering ~472 messages and moving them into another folder on another account resulted in yet another akonadi error message:

<account>: NO Only resources can modify remote identifiers

it appears though as if moving the emails worked nevertheless...
Comment 3 Christian Mollekopf 2014-06-04 07:21:10 UTC
For the "Too many invalid IMAP commands." problem we would probably need a imap log. You can find here http://techbase.kde.org/Projects/PIM/Akonadi/Debug_IMAP how to obtain one.
Comment 4 hemathor 2014-06-04 18:51:08 UTC
thanks for answering!

i tried the imap log and it seems to be an acl problem.

the log sais:
  C: A000361 GETACL "Drafts"
  S: A000361 BAD Error in IMAP command GETACL: ACLs disabled.
  C: A000362 MYRIGHTS "Drafts"
  S: A000362 BAD Error in IMAP command MYRIGHTS: ACLs disabled.

and so on for several subfolders. then:
  S: * BYE Too many invalid IMAP commands.
  X

which is strange, since
(a) it worked before flawlessly with the exact same imap account until i set up a kde environment from scratch,
(b) i enabled the acl plugin in the dovecot imap configuration file, and
(c) all other accounts don't seem to have that problem

if you need anything else, pleas let me know

greetings...
Comment 5 Christian Mollekopf 2014-06-05 08:20:58 UTC
I'm aware of the GETACL  problem, because we don't respect MYRIGHTS (that's on my todolist already), but I don't understand why we're issuing MYRIGHTS if ACL's are disabled. I assume the CAPABILITIES string doesn't contain "ACL"? If it does that seems like a server bug.
Comment 6 Denis Kurz 2016-09-24 20:32:43 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 7 Denis Kurz 2017-01-07 21:51:17 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.