rem: && part->Headers().HasContentType() && part->Headers().ContentType().TypeStr() == sType && part->Headers().ContentType().SubtypeStr() == sSubtype)
add: && attachmentName == part->Headers().ContentDisposition().Filename().c_str() )
context: static DwBodyPart* findBodyPart( const KMMessage& msg, const char* sType, const char* sSubtype ){  // quickly searching for our message part: since Kolab parts are  // top-level parts we do *not* have to travel into embedded multiparts  DwBodyPart* part = msg.getFirstDwBodyPart();  while( part ){    //  kdDebug() << part->Headers().ContentType().TypeStr().c_str() << " "    //          << part->Headers().ContentType().SubtypeStr().c_str() << endl;    if ( part->hasHeaders()         && part->Headers().HasContentType()         && part->Headers().ContentType().TypeStr() == sType         && part->Headers().ContentType().SubtypeStr() == sSubtype)      return part;    part = part->Next();  }  return 0;}