summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-10-21 09:43:15 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-10-21 09:43:15 (GMT)
commitc0eaa54b8284d08f7e8e7275436314adb6de5ecc (patch)
treea0d9fcdd052496bfb38c33fa2b3738b77809b492 /lib/kolabaccount.cpp
parent63b228af9556152c297e3bd29820a8845dbebe66 (diff)
downloadkolab-utils-c0eaa54b8284d08f7e8e7275436314adb6de5ecc.tar.gz
Fixed Exchange migration.
We required convertObject for the fetchObjects method, which replaces getObjects (it's not enough to implement getObjects only). The tests had to be adapted to changes in the server/account classes.
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 0148e12..757a064 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -176,7 +176,7 @@ KJob* KolabAccount::appendObject(Object obj, const QString& folder)
Debug() << "append object in folder: " << folder;
return 0;
}
- if (!mFolders.contains(folder)) {
+ if (!mFolders.contains(folder, Qt::CaseInsensitive)) {
Error() << "failed to find target folder: " << folder;
qDebug() << mFolders;
return 0;
@@ -367,6 +367,7 @@ void KolabAccount::setupFolders()
if (setupJob->error()) {
Error() << setupJob->errorString();
}
+ mFolders.append("inbox");
foreach (const QString &folder, setupJob->createdFolders().values()) {
mFolders.append(folder);
}