summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-11-12 08:44:24 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-11-12 08:44:24 (GMT)
commit9cc58dd474d1843c556dd4fcf333611ebc80b74c (patch)
tree2b359de71359d1eba16965f93d749be95dd4ca58
parentb7007176dfb57218d7e4ea50bbca53c6fadc38cc (diff)
downloadkolab-utils-9cc58dd474d1843c556dd4fcf333611ebc80b74c.tar.gz
cleanup and debug messages
-rw-r--r--lib/jobs/fetchmessagesjob.cpp1
-rw-r--r--migrationutility/googlesourceaccount.cpp2
-rw-r--r--migrationutility/imapsourceaccount.cpp6
-rw-r--r--migrationutility/migrateuserjob.cpp1
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/jobs/fetchmessagesjob.cpp b/lib/jobs/fetchmessagesjob.cpp
index 9f8d380..3c984d7 100644
--- a/lib/jobs/fetchmessagesjob.cpp
+++ b/lib/jobs/fetchmessagesjob.cpp
@@ -91,6 +91,7 @@ void FetchMessagesJob::onSelectDone(KJob *job)
return;
}
setTotalAmount(Files, messageCount);
+ Debug() << "Found " << messageCount << " messages";
int messagesToFetch = messageCount;
if (mNumberOfMessagesToFetch > 0) {
diff --git a/migrationutility/googlesourceaccount.cpp b/migrationutility/googlesourceaccount.cpp
index 8c29214..ed35854 100644
--- a/migrationutility/googlesourceaccount.cpp
+++ b/migrationutility/googlesourceaccount.cpp
@@ -225,7 +225,7 @@ QPair<QString, QString> FetchTaskListsJob::getFolder(const KGAPI2::ObjectPtr& ob
QString name = list.title();
//normalize so it works as imap mailbox name
name.replace(QLatin1String("@"), QLatin1String("at"));
- Debug() << "calendar: " << name;
+ Debug() << "task list: " << name;
return qMakePair<QString, QString>(list.uid(), name);
}
diff --git a/migrationutility/imapsourceaccount.cpp b/migrationutility/imapsourceaccount.cpp
index 39d9d76..381bea6 100644
--- a/migrationutility/imapsourceaccount.cpp
+++ b/migrationutility/imapsourceaccount.cpp
@@ -41,7 +41,6 @@ void FetchIMAPObjectsJob::start()
void FetchIMAPObjectsJob::onJobDone(KJob *job)
{
- Debug() << "fetch done ";
if (job->error()) {
setError(job->error());
setErrorText(job->errorString());
@@ -137,7 +136,6 @@ QList<qint64> IMAPSourceAccount::getImapUids(const QString &folder)
FetchMessagesJob *fetchJob = new FetchMessagesJob(folder, mSession, this);
fetchJob->fetchScope().mode = KIMAP::FetchJob::FetchScope::Headers;
fetchJob->exec();
- Debug() << fetchJob->getMessages().size();
return fetchJob->getImapUids();
}
@@ -160,7 +158,9 @@ void IMAPSourceAccount::prepareConnection(QString host, qint16 port, const QStri
void IMAPSourceAccount::onSessionStateChanged(KIMAP::Session::State oldstate, KIMAP::Session::State newstate)
{
- Debug() << "session state changed " << oldstate << newstate;
+ if (newstate == KIMAP::Session::Disconnected) {
+ Debug() << "session disconnected";
+ }
}
KJob *IMAPSourceAccount::login()
diff --git a/migrationutility/migrateuserjob.cpp b/migrationutility/migrateuserjob.cpp
index 783bf8e..2e150a1 100644
--- a/migrationutility/migrateuserjob.cpp
+++ b/migrationutility/migrateuserjob.cpp
@@ -123,7 +123,6 @@ void MigrateUserJob::migrateNextFolder()
} else {
QMetaObject::invokeMethod(this, "migrateNextAccount", Qt::QueuedConnection);
}
- //TODO here we could delete the source account
return;
}
mCurrentFolder = mFolderQueue.takeFirst();