Since the last 48 hours the behavior described in this bug issue occurred 14 times, and it strongly seems that it will continue to occur.
I searched the Internet for the error message "Unable to fetch item from backend (collection-1): Unable to contact resource", and found this bug report: https://forums.opensuse.org/showthread.php/533024-KMail-Not-Syncing-Gmail-Accounts-After-Recent-Updates But this external bug report did not help me to resolve the issue. I installed the packages libgsasl7 and libgsasl7-dev, but without access, the behavior still occurs. Note that I am using the PIM and within the PIM kmail to access among other things my Yahoo mail account, but no Gmail account. I am retrieving my mails from my mail accounts using POP3, but not IMAP. Currently the behavior occurs if I click the "Check for new mails" button in kmail and then wait until the status bar tells me that this check has been completed by "100%", but the behaviour does not occur every time I check my mails using this button. It occurs once in a while. The behavior just occurred again, and here is the output of the debugger in the Akonadi Console (last lines): --- Quote Beginning --- akonadi_pop3_resource_2 (0x55975d44f2c0) 24 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_2" Mimetypes: "()" Ancestors Depth: "2" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "false" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_2 (0x55975d44f2c0) 24 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } akonadi_pop3_resource_2 (0x55975d44f2c0) 25 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_2" Mimetypes: "()" Ancestors Depth: "0" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "true" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_2 (0x55975d44f2c0) 25 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } akonadi_pop3_resource_1 (0x55975d403ee0) 24 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_1" Mimetypes: "()" Ancestors Depth: "2" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "false" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_1 (0x55975d403ee0) 24 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } akonadi_pop3_resource_1 (0x55975d403ee0) 25 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_1" Mimetypes: "()" Ancestors Depth: "0" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "true" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_1 (0x55975d403ee0) 25 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } akonadi_pop3_resource_0 (0x55975d4559d0) 24 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_0" Mimetypes: "()" Ancestors Depth: "2" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "false" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_0 (0x55975d4559d0) 24 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } akonadi_pop3_resource_0 (0x55975d4559d0) 25 { Command: "FetchCollections" Collections: "UID " Depth: "2" Resource: "akonadi_pop3_resource_0" Mimetypes: "()" Ancestors Depth: "0" Ancestors Attributes: "QSet()" Enabled: "false" Sync: "true" Display: "false" Index: "false" Status: "false" } akonadi_pop3_resource_0 (0x55975d4559d0) 25 { Response: "FetchCollections" Error Code: "0" Error Msg: "" ID: "-1" Name: "" Parent ID: "-1" Remote ID: "" Remote Revision: "" Resource: "" Mimetypes: "()" Statistics: { Count: "-1" Unseen: "-1" Size: "-1" } Search Query: "" Search Collections: "QVector()" Cache Policy: { Inherit: "true" Interval: "-1" Cache Timeout: "-1" Sync on Demand: "false" Local Parts: "()" } Ancestors: { } Attributes: "QMap()" Display: "Undefined" Sync: "Undefined" Index: "Undefined" Enabled: "true" Virtual: "false" Referenced: "false" } --- Quote End ---