Bug 398495

Summary: impossible to bring an imap folder online
Product: [Applications] kmail2 Reporter: ederag <edera>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: frank.mehnert, geozaraujo
Priority: NOR    
Version: 5.7.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Corresponding resource setting

Description ederag 2018-09-11 13:21:06 UTC
An imap folder is offline, and impossible to bring back online.
Update this folder>
"Before syncing folder it is necessary to have the resource online. Do you want to make it online?"
> Go Online

org.kde.pim.akonadicontrol: Agent instance with identifier  "akonadi_imap_resource_0"  does not exist
org.kde.pim.akonadicontrol: Agent instance with identifier  ""  does not exist
org.kde.pim.akonadicontrol: Agent instance with identifier  "akonadi_imap_resource_0"  does not exist

akonadictl restart
does not solve anything.
Comment 1 George 2018-09-13 21:10:25 UTC
Same here.
Comment 2 ederag 2018-09-14 16:47:34 UTC
looking further into it,
two files were excluded from my synchronization setup.
On the buggy desktop they were missing imap informations in
agentsrc and mailtransports:

.config/akonadi/agentsrc
-akonadi_imap_resource\InstanceCounter=0
+akonadi_imap_resource\InstanceCounter=1
+akonadi_imap_resource_0\AgentType=akonadi_imap_resource

.config/mailtransports
 [General]
-default-transport=1927230780
+default-transport=1338476827

+[Transport 1338476827]
+auth=true
+ ... imap setup stuff ...

Now it works, but not tested for long.

More relevant for this bug report:
the kmail feedback could be improved (instead of just staying off-line),
when an imap folder exists without the corresponding Transport.
Comment 3 Frank Mehnert 2018-10-04 19:29:40 UTC
Created attachment 115419 [details]
Corresponding resource setting
Comment 4 Frank Mehnert 2018-10-04 19:50:39 UTC
Apologies. Please ignore my last attachment, I used the wrong tab (had my own report open at another tab).