diff src/plugins/plugin_misc_smtp.py @ 574:89f9a50ce7bf

core, plugin imap, plugin smtp: fixed SMTP/IMAP integration. /!\ Profile need to be connected for IMAP server to work (will change in the future)
author Goffi <goffi@goffi.org>
date Tue, 08 Jan 2013 00:46:38 +0100
parents 2a072735e459
children 952322b1d490
line wrap: on
line diff
--- a/src/plugins/plugin_misc_smtp.py	Mon Jan 07 23:54:17 2013 +0100
+++ b/src/plugins/plugin_misc_smtp.py	Tue Jan 08 00:46:38 2013 +0100
@@ -91,7 +91,7 @@
         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
-                                  subject=mail['subject'].decode('utf-8','replace'), type='normal', profile_key=self.profile)
+                                  subject=mail['subject'].decode('utf-8','replace'), mess_type='normal', profile_key=self.profile)
         except:
             exc_type, exc_value, exc_traceback = sys.exc_info()
             error(_("Can't send message: %s") % exc_value) #The email is invalid or incorreclty parsed