summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-11-11 13:42:04 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-11-11 13:42:04 (GMT)
commite01a298a7f5c3e5cb9b554f8c6b1e2406a04d724 (patch)
treeb2c04b6e6aa4b0cfed97c5c34bf90b32b00d47b4
parent3f7b06aea7ffb2b12cb4593567e1793bbbcb0916 (diff)
downloadkolab-utils-e01a298a7f5c3e5cb9b554f8c6b1e2406a04d724.tar.gz
Ignore virtual folders by default. Otherwise we end up duplication all mails.
-rw-r--r--migrationutility/googlesourceserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/migrationutility/googlesourceserver.cpp b/migrationutility/googlesourceserver.cpp
index 978149c..c286b26 100644
--- a/migrationutility/googlesourceserver.cpp
+++ b/migrationutility/googlesourceserver.cpp
@@ -58,7 +58,6 @@ void GoogleSourceServer::setAuthentication(KIMAP::LoginJob::AuthenticationMode a
QList<SourceAccount*> GoogleSourceServer::getSourceAccountsImpl(const QString& user)
{
QList <SourceAccount*> sourceAccounts;
-
GoogleContactsSourceAccount *contactsAccount = new GoogleContactsSourceAccount(this);
contactsAccount->setUser(user);
sourceAccounts << contactsAccount;
@@ -70,9 +69,10 @@ QList<SourceAccount*> GoogleSourceServer::getSourceAccountsImpl(const QString& u
GoogleTasksSourceAccount *tasksAccount = new GoogleTasksSourceAccount(this);
tasksAccount->setUser(user);
sourceAccounts << tasksAccount;
-
+
IMAPSourceAccount *imapAccount = new IMAPSourceAccount(this);
imapAccount->prepareConnection(mHost, mPort, user, user, mPw, mEncryptionMode, mAuthenticationMode);
+ imapAccount->setIgnoredFolders(QStringList() << QLatin1String("[Gmail]")); //ignore the virtual folders
sourceAccounts << imapAccount;
return sourceAccounts;