Bug/8479 Core attempts to sync after logout
I tried to solve the problem of making the core stop to sync/fetch mail after a logout. That required a bit of refactor for how services are used.
Some highlights:
- move imap/smtp initialization to
startService
, allowing start/stop as twisted service. - turn
IncomingMailService
into aMultiService
, allowing to store multiple syncers as child services. - separate service initialization and start on
BitmaskBackend
, also make use of twisted service infrastructure. - bug fixes
The related issue: https://leap.se/code/issues/8479