Fix bug where compact-all-exit setting is ignored.
Fix bug where compact-all-exit setting is ignored.

The problem was the current group of THE KConfig object was being changed
due to the new trash folder cleanup code. (It calls trashfolder->close
which calls writeconfig which changes the group to the group for that
folder).

   if (the_folderMgr) {
+    config->setGroup("General");
     if (config->readBoolEntry("compact-all-on-exit", true))
       the_folderMgr->compactAll(); // I can compact for ages in peace now!

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

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