rem: if (folder == kernel->outboxFolder() || folder == kernel->sentFolder() || folder == kernel->draftsFolder())
add: if (kernel->folderIsDraftOrOutbox(folder))
context:   QString text( int col) const  {    KMHeaders *headers = static_cast<KMHeaders*>(listView());    KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId );    QString tmp;    if(col == headers->paintInfo()->flagCol) {      if (headers->paintInfo()->flagCol >= 0)	tmp = QString( QChar( (char)mMsgBase->status() ));    } else if(col == headers->paintInfo()->senderCol) {      KMFolder *folder = headers->folder();      if (folder == kernel->outboxFolder() || folder == kernel->sentFolder()          || folder == kernel->draftsFolder())        tmp = mMsgBase->toStrip();      else        tmp = mMsgBase->fromStrip();      if (tmp.isEmpty())        tmp = i18n("Unknown");      else        tmp = tmp.simplifyWhiteSpace();    } else if(col == headers->paintInfo()->subCol) {      tmp = mMsgBase->subject();      if (tmp.isEmpty())	tmp = i18n("No Subject");      else	tmp = tmp.simplifyWhiteSpace();    } else if(col == headers->paintInfo()->dateCol) {        tmp = KMHeaders::formatDate(mMsgBase->date(), headers->paintInfo()->dateDisplay );    } else if(col == headers->paintInfo()->sizeCol      && headers->paintInfo()->showSize) {        if (headers->folder()->protocol() == "imap")        {          QCString cstr;          headers->folder()->getMsgString(mMsgId, cstr);          int a = cstr.find("\nX-Length: ");          int b = cstr.find("\n", a+1);          tmp = cstr.mid(a+11, b-a-11);        } else tmp.setNum(mMsgBase->msgSize());#ifdef SCORING    } else if(col == headers->paintInfo()->scoreCol) {      tmp.setNum(headers->messageScore(mMsgId));#endif    }    return tmp;  }