Bug 429811

Summary: Akonadi tries to fetch the mail too soon after reboot resulting in offline mode for kmail
Product: [Frameworks and Libraries] Akonadi Reporter: ivan.planinar
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.15.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ivan.planinar 2020-11-29 16:27:49 UTC
SUMMARY

Sometimes when I restart the PC, internet connection doesn't come up instantly, but in like 5-7 seconds or so.

The trouble is, Akonadi/Kmail starts as soon as KDE shows up, so when there's no insta-internet, it reports 'connection with kwallet broken' and makes my kmail account go into offline mode.

Is it possible to set Akonadi somewhere to WAIT a few secs after PC restart? Or if that is not possible, how about to restart itself automatically after failed attempt?

STEPS TO REPRODUCE
1. Reset the PC 
2. If internet isn't momentarily connected, akonadi will report broken wallet and will turn kmail accounts to offline mode.

Latest KDE on Arch. Akonadi/Kmail is fetching 2 gmail accounts.