Hello,
I fix sending messages in winpopup. Messages wasnt delivered and const
QString &Body has a lot of white spaces at the end in void
WinPopupLib::sendMessage(const QString &Body, const QString &Destination)

And on my *buntu sh doesnt support echo -e (parm e). It support only
bash. I changed header in winpopup scripts to use bash (instead sh)

-- 
Pali Rohár
[EMAIL PROTECTED]
Index: winpopup-send.sh
===================================================================
--- winpopup-send.sh	(revision 871741)
+++ winpopup-send.sh	(working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 PATH=/bin:/usr/bin/:/usr/local/bin
 
 # Check input
Index: winpopup-install.sh
===================================================================
--- winpopup-install.sh	(revision 871741)
+++ winpopup-install.sh	(working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 PATH=/bin:/usr/bin
 
Index: libwinpopup/libwinpopup.cpp
===================================================================
--- libwinpopup/libwinpopup.cpp	(revision 871741)
+++ libwinpopup/libwinpopup.cpp	(working copy)
@@ -323,8 +323,8 @@
 	QProcess *sender = new QProcess(this);
 	QStringList args;
 	args << "-M" << Destination << "-N" << "-";
-	sender->start(smbClientBin);
-	sender->write(Body.toLocal8Bit());
+	sender->start(smbClientBin, args);
+	sender->write(Body.trimmed().toLocal8Bit());
 	sender->closeWriteChannel();
 }
 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to