Commit 9d3e852b authored by Laurent Montel's avatar Laurent Montel 😁

Allow to exclude unified mailbox from local subscription

parent 4ae1a87b
......@@ -67,6 +67,11 @@ Q_REQUIRED_RESULT inline bool isFolder(const Collection &collection)
collection.resource() != QLatin1String("akonadi_search_resource"));
}
Q_REQUIRED_RESULT inline bool isUnifiedMailbox(const Collection &collection)
{
return collection.resource() == QLatin1String("akonadi_unifiedmailbox_agent");
}
Q_REQUIRED_RESULT inline QString defaultIconName(const Collection &col)
{
if (CollectionUtils::isVirtualParent(col)) {
......
......@@ -75,7 +75,7 @@ public:
bool isSubscribable(Collection::Id id)
{
Collection col = q->collectionForId(id);
if (CollectionUtils::isStructural(col) || col.isVirtual()) {
if (CollectionUtils::isStructural(col) || col.isVirtual() || CollectionUtils::isUnifiedMailbox(col)) {
return false;
}
if (col.hasAttribute<SpecialCollectionAttribute>()) {
......
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