rem: kmkernel->action (mailto, checkMail, to, cc, bcc, subj, body, messageFile, attachURLs);
add: kmkernel->handleCommandLine( true );
context: int KMailApplication::newInstance(){  QString to, cc, bcc, subj, body;  KURL messageFile = QString::null;  KURL::List attachURLs;  bool mailto = false;  bool checkMail = false;  //bool viewOnly = false;  if (dcopClient()->isSuspended())  {    // Try again later.    QTimer::singleShot( 100, this, SLOT(newInstance()) );    return 0;  }  // process args:  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();  if (args->getOption("subject"))  {     mailto = true;     subj = QString::fromLocal8Bit(args->getOption("subject"));  }  if (args->getOption("cc"))  {     mailto = true;     cc = QString::fromLocal8Bit(args->getOption("cc"));  }  if (args->getOption("bcc"))  {     mailto = true;     bcc = QString::fromLocal8Bit(args->getOption("bcc"));  }  if (args->getOption("msg"))  {     mailto = true;     messageFile.setPath( QString::fromLocal8Bit(args->getOption("msg")) );  }  if (args->getOption("body"))  {     mailto = true;     body = QString::fromLocal8Bit(args->getOption("body"));  }  QCStringList attachList = args->getOptionList("attach");  if (!attachList.isEmpty())  {     mailto = true;     for ( QCStringList::Iterator it = attachList.begin() ; it != attachList.end() ; ++it )       if ( !(*it).isEmpty() )         attachURLs += KURL( QString::fromLocal8Bit( *it ) );  }  if (args->isSet("composer"))    mailto = true;  if (args->isSet("check"))    checkMail = true;  for(int i= 0; i < args->count(); i++)  {    if (strncasecmp(args->arg(i),"mailto:",7)==0)      to += args->url(i).path() + ", ";    else {      QString tmpArg = QString::fromLocal8Bit( args->arg(i) );      KURL url( tmpArg );      if ( url.isValid() )        attachURLs += url;      else        to += tmpArg + ", ";    }    mailto = true;  }  if ( !to.isEmpty() ) {    // cut off the superfluous trailing ", "    to.truncate( to.length() - 2 );  }  args->clear();  if (!kmkernel->firstInstance() || !kapp->isRestored())    kmkernel->action (mailto, checkMail, to, cc, bcc, subj, body, messageFile, attachURLs);  kmkernel->setFirstInstance(FALSE);  return 0;}