Added SMTP server plugin, for sending messages from classic MUA \o/

- added subject managing in sendMessage
This commit is contained in:
Goffi 2011-01-18 03:59:59 +01:00
commit 59d6090e73

View file

@ -182,11 +182,11 @@ class DbusObject(dbus.service.Object):
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='')