Index: kdeui/kbugreport.cpp
===================================================================
--- kdeui/kbugreport.cpp	(Revision 532395)
+++ kdeui/kbugreport.cpp	(Arbeitskopie)
@@ -36,7 +36,7 @@
 #include <klineedit.h>
 #include <klocale.h>
 #include <kmessagebox.h>
-#include <kprocess.h>
+#include <qprocess.h>
 #include <kstandarddirs.h>
 #include <kstdguiitem.h>
 #include <kinstance.h>
@@ -327,10 +327,10 @@
 void KBugReport::slotConfigureEmail()
 {
   if (m_process) return;
-  m_process = new KProcess;
-  *m_process << QString::fromLatin1("kcmshell") << QString::fromLatin1("kcm_useraccount");
-  connect(m_process, SIGNAL(processExited(KProcess *)), SLOT(slotSetFrom()));
-  if (!m_process->start())
+  m_process = new QProcess;
+  connect(m_process, SIGNAL(finished()), SLOT(slotSetFrom()));
+  m_process->start(QString::fromLatin1("kcmshell"), QStringList() << QString::fromLatin1("kcm_useraccount"));
+  if (m_process->state() == QProcess::NotRunning)
   {
     kDebug() << "Couldn't start kcmshell.." << endl;
     delete m_process;
@@ -500,6 +500,28 @@
   KTempFile outputfile;
   outputfile.close();
 
+#ifdef Q_WS_WIN
+  QStringList args;
+  args << " --subject ";
+  args << m_subject->text();
+  args << " --recipient ";
+  args << recipient;
+	
+	QProcess proc;
+	proc.start(command,args);
+	proc.write(text().toLatin1());
+  proc.closeWriteChannel();
+  if (proc.waitForFinished(-1)) {
+  	QByteArray data = proc.readAllStandardOutput();
+  	// rh: not checked
+  	// - size=0 case because of permanent error "553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)"
+  	// - utf-8 conversation
+  	if (data.size() > 0)
+  		d->lastError = data.data();
+		else
+  		d->lastError.clear();
+  }
+#else
   QString subject = m_subject->text();
   command += " --subject ";
   command += KProcess::quote(subject);
@@ -542,6 +564,7 @@
       return false;
   }
   outputfile.unlink();
+#endif 
   return true;
 }
 
