rem: transferMail();
add: cfg->setGroup("General"); foldersPath = cfg->readEntry("folders", ""); acctPath = cfg->readEntry("accounts", foldersPath + "/.kmail-accounts");
context: static void init(int argc, char *argv[]){  QString  acctPath, foldersPath;  KConfig* cfg;  app = new KApplication(argc, argv, "kmail");  nls = app->getLocale();  kbp = new KBusyPtr;  cfg = app->getConfig();  keys = new KStdAccel(cfg);  oldMsgHandler = qInstallMsgHandler(kmailMsgHandler);  testDir("/.kde");  testDir("/.kde/share");  testDir("/.kde/share/config");    testDir("/.kde/share/apps");  testDir("/.kde/share/apps/kmail");  identity = new KMIdentity;  transferMail();  cfg->setGroup("General");  foldersPath = cfg->readEntry("folders", 			       QDir::homeDirPath() + QString("/Mail"));  acctPath = cfg->readEntry("accounts", foldersPath + "/.kmail-accounts");  folderMgr = new KMFolderMgr(foldersPath);  acctMgr   = new KMAcctMgr(acctPath);  filterMgr = new KMFilterMgr;  filterActionDict = new KMFilterActionDict;  addrBook  = new KMAddrBook;  initFolders(cfg);  acctMgr->readConfig();  filterMgr->readConfig();  addrBook->readConfig();  addrBook->load();  KMMessage::readConfig();  msgSender = new KMSender;}