add: KMMessage::readConfig();
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;  cfg->setGroup("General");  foldersPath = cfg->readEntry("folders", 			       QDir::homeDirPath() + QString("/KMail"));  acctPath = cfg->readEntry("accounts", foldersPath + "/.kmail-accounts");  folderMgr = new KMFolderMgr(foldersPath);  acctMgr   = new KMAcctMgr(acctPath);  filterMgr = new KMFilterMgr;  inboxFolder  = (KMFolder*)folderMgr->findOrCreate(				         cfg->readEntry("inboxFolder", "inbox"));  inboxFolder->open();  outboxFolder = folderMgr->findOrCreate(cfg->readEntry("outboxFolder", "outbox"));  outboxFolder->setType("out");  outboxFolder->open();  sentFolder   = folderMgr->findOrCreate(cfg->readEntry("sentFolder", "sent_mail"));  sentFolder->setType("st");  sentFolder->open();  trashFolder  = folderMgr->findOrCreate(cfg->readEntry("trashFolder", "trash"));  trashFolder->setType("tr");  trashFolder->open();  acctMgr->readConfig();  filterMgr->readConfig();  msgSender = new KMSender;}