summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-11-04 07:58:46 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-11-04 07:58:46 (GMT)
commitbb60bd77288afcce1f32cdf53171d91ab5159c92 (patch)
treebffb92035ac772eb774b7bc6c51bc7f46b0b1759 /lib/kolabaccount.cpp
parent686f6f47a6e3eeef20028809a0b1c90860dfacf3 (diff)
downloadkolab-utils-bb60bd77288afcce1f32cdf53171d91ab5159c92.tar.gz
Fixed dry run.
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 757a064..29cb6d0 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -95,7 +95,7 @@ void KolabAccount::setWipeTargetFolders(bool enable)
bool KolabAccount::init()
{
if (mDryRun) {
- return false;
+ return true;
}
if (mSession) {
return false;
@@ -232,6 +232,10 @@ void KolabAccount::cleanAccount()
Debug() << "wiping of target folders disabled";
return;
}
+ if (mDryRun) {
+ Debug() << "wiping account";
+ return;
+ }
Q_ASSERT(mSession);
KIMAP::ListJob *listJob = new KIMAP::ListJob(mSession);
listJob->setOption(KIMAP::ListJob::IncludeUnsubscribed);