Commit 0f5b1b4d authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent f1230f18
......@@ -83,19 +83,17 @@ void FollowUpReminderManager::checkFollowUp(const Akonadi::Item &item, const Ako
return;
}
//If we move to trash directly => exclude it.
Akonadi::SpecialMailCollections::Type type = Akonadi::SpecialMailCollections::self()->specialCollectionType(col);
if (type == Akonadi::SpecialMailCollections::Trash)
return;
//Exclude outbox too
if (type == Akonadi::SpecialMailCollections::Outbox)
return;
if (type == Akonadi::SpecialMailCollections::Drafts)
return;
if (type == Akonadi::SpecialMailCollections::Templates)
return;
if (type == Akonadi::SpecialMailCollections::SentMail)
const Akonadi::SpecialMailCollections::Type type = Akonadi::SpecialMailCollections::self()->specialCollectionType(col);
switch(type) {
case Akonadi::SpecialMailCollections::Trash:
case Akonadi::SpecialMailCollections::Outbox:
case Akonadi::SpecialMailCollections::Drafts:
case Akonadi::SpecialMailCollections::Templates:
case Akonadi::SpecialMailCollections::SentMail:
return;
default:
break;
}
FollowUpReminderJob *job = new FollowUpReminderJob(this);
......
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