Do not connect to imap servers during startup that are excluded from checks.

svn path=/trunk/kdepim/; revision=253392
wilder-work
Carsten Burghardt 23 years ago
parent a1bc35a806
commit eb94e8f283
  1. 10
      kmacctimap.cpp
  2. 7
      kmacctimap.h

@ -358,4 +358,14 @@ void KMAcctImap::setPrefixHook() {
if ( mFolder ) mFolder->setImapPath( prefix() );
}
//-----------------------------------------------------------------------------
void KMAcctImap::readConfig(KConfig& config)
{
ImapAccountBase::readConfig( config );
if ( checkExclude() ) {
disconnect(kmkernel->imapFolderMgr(), SIGNAL(changed()),
this, SLOT(slotUpdateFolderList()));
}
}
#include "kmacctimap.moc"

@ -91,6 +91,13 @@ public:
*/
virtual void listDirectory();
/**
* Read config file entries. This method is called by the account
* manager when a new account is created. The config group is
* already properly set by the caller.
*/
virtual void readConfig(KConfig& config);
public slots:
void processNewMail() { processNewMail(TRUE); }

Loading…
Cancel
Save