summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 5925fc5..4c03524 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -436,8 +436,11 @@ QString KolabAccount::applyTargetFolderTransformations(const QString &folder) co
QString newName(folder);
foreach (const QString &searchString, mRegextrans.keys()) {
if (folder.contains(searchString)) {
- return mRegextrans.value(searchString);
+ newName = mRegextrans.value(searchString);
+ break;
}
}
+ //normalize so it works as imap mailbox name
+ newName.replace(QLatin1String("@"), QLatin1String("at"));
return newName;
}