Merge remote-tracking branch 'origin/KDE/4.9'

wilder-work
Montel Laurent 14 years ago
commit d23f78c197
  1. 6
      kmkernel.cpp
  2. 3
      main.cpp

@ -400,7 +400,8 @@ bool KMKernel::handleCommandLine( bool noArgsOpensReader )
if (args->isSet("msg"))
{
mailto = true;
messageFile.setPath( args->getOption("msg") );
const QString file = args->getOption("msg");
messageFile = makeAbsoluteUrl(file);
}
if (args->isSet("body"))
@ -1356,10 +1357,11 @@ void KMKernel::action( bool mailto, bool check, const QString &to,
const KUrl::List &attachURLs,
const QStringList &customHeaders )
{
if ( mailto )
if ( mailto ) {
openComposer( to, cc, bcc, subj, body, 0,
messageFile.pathOrUrl(), attachURLs.toStringList(),
customHeaders );
}
else
openReader( check );

@ -37,6 +37,8 @@
#include <windows.h>
#endif
#include <QDir>
//-----------------------------------------------------------------------------
class KMailApplication : public KontactInterface::PimUniqueApplication
@ -105,6 +107,7 @@ int main(int argc, char *argv[])
#endif
KMail::AboutData about;
KCmdLineArgs::setCwd(QDir::currentPath().toLocal8Bit());
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( kmail_options() ); // Add kmail options
if (!KMailApplication::start())

Loading…
Cancel
Save