Mercurial > libervia-backend
diff src/plugins/plugin_misc_smtp.py @ 602:6fd1095b2b7b
core: sendMessage refactoring:
- sendMessage now use JID instead of unicode, bridge method using unicode is now _sendMessage
- added no_trigger argument, so it's now possible to forbid trigger execution (to avoid any plugin when we send a message)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 22 Feb 2013 00:15:50 +0100 |
parents | e629371a28d3 |
children | 84a6e83157c2 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_smtp.py Fri Feb 22 00:11:47 2013 +0100 +++ b/src/plugins/plugin_misc_smtp.py Fri Feb 22 00:15:50 2013 +0100 @@ -90,7 +90,7 @@ """handle end of message""" mail = Parser().parsestr("\n".join(self.message)) try: - self.host.sendMessage(parseaddr(mail['to'].decode('utf-8', 'replace'))[1], mail.get_payload().decode('utf-8', 'replace'), # TODO: manage other charsets + self.host._sendMessage(parseaddr(mail['to'].decode('utf-8', 'replace'))[1], mail.get_payload().decode('utf-8', 'replace'), # TODO: manage other charsets subject=mail['subject'].decode('utf-8', 'replace'), mess_type='normal', profile_key=self.profile) except: exc_type, exc_value, exc_traceback = sys.exc_info()