-- I could reproduce this bug on 3.5 branch as well.

-- Details : https://www.intevation.de/roundup/kolab/issue2607

Merged revisions 830100 via svnmerge from 
svn+ssh://pradeepto@svn.kde.org/home/kde/branches/kdepim/enterprise/kdepim

........
  r830100 | pradeepto | 2008-07-10 00:29:32 +0530 (Thu, 10 Jul 2008) | 4 lines
  
   -- kolab/issue2607 sync loop after deactivation of autosync.
        -- Check if the mail-check-interval changed to 0 / was disabled by the user and if yes, de-install the timer so that it doesn't trigger off
   and start a sync again and again.
........

svn path=/branches/KDE/3.5/kdepim/; revision=830307
wilder-work
Pradeepto Bhattacharya 18 years ago
parent d5591eea30
commit cb42919e0c
  1. 6
      accountmanager.cpp
  2. 10
      kmaccount.cpp
  3. 1
      kmaccount.h

@ -113,6 +113,12 @@ void AccountManager::singleCheckMail(KMAccount *account, bool interactive)
mNewMailArrived = false;
mInteractive = interactive;
// if sync has been requested by the user then check if check-interval was disabled by user, if yes, then
// de-install the timer
// Safe guard against an infinite sync loop (kolab/issue2607)
if ( mInteractive )
account->readTimerConfig();
// queue the account
mAcctTodo.append(account);

@ -163,6 +163,16 @@ void KMAccount::readConfig(KConfig& config)
installTimer();
}
void KMAccount::readTimerConfig()
{
// Re-reads and checks check-interval value and deinstalls timer incase check-interval
// for mail check is disabled.
// Or else, the mail sync goes into a infinite loop (kolab/issue2607)
if (mInterval == 0)
deinstallTimer();
else
installTimer();
}
//-----------------------------------------------------------------------------
void KMAccount::writeConfig(KConfig& config)

@ -142,6 +142,7 @@ public:
* already properly set by the caller.
*/
virtual void readConfig(KConfig& config);
virtual void readTimerConfig();
/**
* Write all account information to given config file. The config group

Loading…
Cancel
Save