summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-03-16 16:21:52 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-03-16 16:21:52 (GMT)
commitcb879749d1f53ded04e38e63a96239b5df3475e6 (patch)
tree91ee0041c8299e88be45dd4eb370c58d029b37a9 /lib/kolabaccount.cpp
parentf4dc0f7919731a446f372e2b0200b42f7ecf13be (diff)
downloadkolab-utils-cb879749d1f53ded04e38e63a96239b5df3475e6.tar.gz
Don't timeout, cleanup.
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 9128113..de56ba6 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -16,8 +16,8 @@
*/
#include "kolabaccount.h"
-#include "uiproxy.h"
-#include <jobs/setupkolabfoldersjob.h>
+#include "sessionfactory.h"
+#include "jobs/setupkolabfoldersjob.h"
#include "jobs/fetchmessagesjob.h"
#include <kimap/session.h>
#include <kimap/logoutjob.h>
@@ -97,8 +97,7 @@ bool KolabAccount::init()
if (mSession) {
return false;
}
- mSession = new KIMAP::Session( mHost, mPort, this );
- mSession->setUiProxy( KIMAP::SessionUiProxy::Ptr(new UiProxy()) );
+ mSession = createSession( mHost, mPort, this );
KIMAP::LoginJob *loginJob = new KIMAP::LoginJob( mSession );
Debug() << mUsername << mAuthorizationName << mPw;
if (mAuthorizationName != mUsername) {
@@ -247,8 +246,8 @@ void KolabAccount::cleanAccount()
Error() << selectJob->errorString();
}
const int messageCount = selectJob->messageCount();
+ Debug() << "removing folder: " << desc.name << messageCount;
if (mDryRun) {
- Debug() << "removing folder: " << desc.name << messageCount;
continue;
}