[Kde-pim] Can there ever not be a KMKernel?

laurent Montel montel at kde.org
Sun May 4 14:27:28 BST 2014


On dimanche 4 mai 2014 13:59:47 Jonathan Marten wrote:
> I've been looking at how KMail stores its configuration for the
> Akonadi agents that it manages for receiving accounts - check mail on
> startup, offline on exit etc.  This is used by KMKernel and the GUI is
> in configuredialog/configureaccountpage.cpp.  What doesn't seem to
> make sense is that in that file, in AccountsPage::ReceivingTab::save
> and AccountsPageReceivingTab::slotShowMailCheckMenu, there is code to
> handle the case where no KMKernel exists and access the kmail2rc
> config file directly.
> 
> Can this situation ever happen?  I've looked at and tried out all of
> the possible ways to get to the KMail settings, including via Kontact,
> and a KMKernel always exists at this point.  If it is possible to
> always rely on the presence of a KMKernel, then this code could be
> cleaned up and some duplication eliminated.
> 
> Kind regards, Jonathan

Yes it can when you start kontact without kmail plugins and you activate it 
after that.

So don’t clean up.
Thanks

-- 
Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53,  http://www.kdab.fr


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list