summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-10-26 10:35:43 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-10-26 10:35:43 (GMT)
commite21838326486e1a382ecd214e1052b75493ea453 (patch)
treeaa904760fd69335ea9a3feed155535f3e1743a4b /lib/kolabaccount.cpp
parenteb9abc67c78e61162040f8ad7d057fd96e0b0ba0 (diff)
downloadkolab-utils-e21838326486e1a382ecd214e1052b75493ea453.tar.gz
We don't remove the inbox, but should still clear it's content.
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 7048a99..0d98ede 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -166,9 +166,6 @@ void KolabAccount::cleanAccount()
Error() << listJob->errorString();
}
foreach (const KIMAP::MailBoxDescriptor &desc, mMailboxes) {
- if (desc.name.contains(QLatin1String("inbox"), Qt::CaseInsensitive)) {
- continue;
- }
bool skip = false;
foreach(const KIMAP::MailBoxDescriptor &excluded, mExcludedNamespaces) {
if (desc.name.contains(excluded.name)) {
@@ -208,6 +205,9 @@ void KolabAccount::cleanAccount()
Error() << expungeJob->errorString();
}
}
+ if (desc.name.contains(QLatin1String("inbox"), Qt::CaseInsensitive)) {
+ continue;
+ }
KIMAP::DeleteJob *deleteJob = new KIMAP::DeleteJob(mSession);
Debug() << "deleting: " << desc.name;