rem: int threadingPolicy = headers->getNestingPolicy(); if(threadingPolicy == 3) { KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId ); if (mMsgBase->status() == KMMsgStatusNew || mMsgBase->status() == KMMsgStatusUnread || mMsgBase->status() == KMMsgStatusFlag) { threadingPolicy = 1; openNow=true; }
add: NestingPolicy threadingPolicy = headers->getNestingPolicy(); if ((threadingPolicy == AlwaysOpen) || (threadingPolicy == DefaultOpen)) {  if (parent()) parent()->setOpen(true); return;
context:   void irefresh(bool openNow=true)  {    KMHeaders *headers = static_cast<KMHeaders*>(listView());    int threadingPolicy = headers->getNestingPolicy();    if(threadingPolicy == 3) {      KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId );      if (mMsgBase->status() == KMMsgStatusNew ||	  mMsgBase->status() == KMMsgStatusUnread ||          mMsgBase->status() == KMMsgStatusFlag)      {        threadingPolicy = 1;        openNow=true;      }    }    if (!openNow)       return;    if (threadingPolicy < 2) {      KMHeaderItem * topOfThread = this;      while(topOfThread->parent())    	topOfThread = (KMHeaderItem*)topOfThread->parent();      topOfThread->setOpen( true );    }  }