Commit 0b9313ae authored by Krzysztof Nowicki's avatar Krzysztof Nowicki

Recognise inbox collection from all resources

This fixes filtering on non-IMAP resources as the current implementation
only considers for filtering folders with server-side name "INBOX" or
the default Inbox collection for the Akonadi instance. If the resource
uses a different server-side identifier for its Inbox folder it will not
get filtered.

The updated implementation will consider all Inbox-type folders for all
resources that have registered such folders.

Reviewers: #kde_pim, dvratil

Reviewed By: #kde_pim, dvratil

Tags: #kde_pim

Differential Revision:
parent 70175cff
......@@ -375,7 +375,7 @@ bool Kernel::folderIsInbox(const Akonadi::Collection &collection)
return true;
//Fix order. Remoteid is not "inbox" when translated
if (collection == Akonadi::SpecialMailCollections::self()->defaultCollection(Akonadi::SpecialMailCollections::Inbox)) {
if (Akonadi::SpecialMailCollections::self()->specialCollectionType(collection) == Akonadi::SpecialMailCollections::Inbox) {
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment