diff src/bridge/DBus.py @ 260:c8406fe5e81e

Added SMTP server plugin, for sending messages from classic MUA \o/ - added subject managing in sendMessage
author Goffi <goffi@goffi.org>
date Tue, 18 Jan 2011 03:59:59 +0100
parents b1794cbb88e5
children af3d4f11fe43
line wrap: on
line diff
--- a/src/bridge/DBus.py	Tue Jan 18 01:07:12 2011 +0100
+++ b/src/bridge/DBus.py	Tue Jan 18 03:59:59 2011 +0100
@@ -182,11 +182,11 @@
         return self.cb["getWaitingSub"](profile_key)
 
     @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
-                         in_signature='ssss', out_signature='')
-    def sendMessage(self, to, message, type='chat', profile_key='@DEFAULT@'):
+                         in_signature='sssss', out_signature='')
+    def sendMessage(self, to, message, subject="", type='chat', profile_key='@DEFAULT@'):
         debug("sendMessage...")
         print "sendtype=", type  #gof
-        self.cb["sendMessage"](to, message, type, profile_key)
+        self.cb["sendMessage"](to, message, subject, type, profile_key)
 
     @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
                          in_signature='ssia{ss}s', out_signature='')