summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 11:09:09 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 11:09:09 (GMT)
commit85ab78ead32750eb790d5be9066d486015d975a7 (patch)
tree4d7df244fb724ae6d3a53182b80474d744efef04
parent9c0c5fa6bef892f37acbf992ecf39dac4be54a75 (diff)
Allow to remove account identifier
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/filter/mailfilter.cpp5
-rw-r--r--src/filter/mailfilter.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5bc0eb4..51ce5df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
-set(PIM_VERSION "5.3.41")
+set(PIM_VERSION "5.3.42")
set(MAILCOMMON_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.3.40")
set(MESSAGELIB_LIB_VERSION "5.3.40")
diff --git a/src/filter/mailfilter.cpp b/src/filter/mailfilter.cpp
index 7dfd944..61fc1af 100644
--- a/src/filter/mailfilter.cpp
+++ b/src/filter/mailfilter.cpp
@@ -275,6 +275,11 @@ SearchRule::RequiredPart MailFilter::requiredPart(const QString &id) const
return static_cast<SearchRule::RequiredPart>(requiredPart);
}
+void MailFilter::agentRemoved(const QString &identifier)
+{
+ mAccounts.removeAll(identifier);
+}
+
void MailFilter::folderRemoved(const Akonadi::Collection &aFolder, const Akonadi::Collection &aNewFolder)
{
QListIterator<FilterAction *> it(mActions);
diff --git a/src/filter/mailfilter.h b/src/filter/mailfilter.h
index 65874b2..453ce86 100644
--- a/src/filter/mailfilter.h
+++ b/src/filter/mailfilter.h
@@ -312,6 +312,7 @@ public:
void generateSieveScript(QStringList &requires, QString &code);
void clearApplyOnAccount();
+ void agentRemoved(const QString &identifier);
private:
QString mIdentifier;
SearchPattern mPattern;