Fix infinite folder expiration loop:  void KMFolderMgr::expireAllFolders(KMFolderDir *adir) {    KMFolderNode  *cur = NULL;    KMFolderDir   *fdir = adir ? adir : &mDir; +  QPtrListIterator<KMFolderNode> it(*fdir);
Fix infinite folder expiration loop:
 void KMFolderMgr::expireAllFolders(KMFolderDir *adir) {
   KMFolderNode  *cur = NULL;
   KMFolderDir   *fdir = adir ? adir : &mDir;
+  QPtrListIterator<KMFolderNode> it(*fdir);

-  for (cur = fdir->first(); cur; cur = fdir->next()) {
+  for (; (cur = it.current()); ++it) {
     if (cur->isDir()) {
          continue;
     }

svn path=/trunk/kdenetwork/kmail/; revision=126146

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi