%s" % body, - attachments=attach, - headers=x_headers - ) - else: - flag = tools.email_send( - email_from, - emails, - obj.subject, - body, - attach=attach, - reply_to=case.section_id.reply_to, - openobject_id=str(case.id), - x_headers=x_headers - ) + + flag = tools.email_send( + email_from, + emails, + obj.subject, + body, + attach=attach, + reply_to=case.section_id.reply_to, + openobject_id=str(case.id), + x_headers=x_headers + ) if flag: if obj.state == 'unchanged': diff --git a/addons/fetchmail/__openerp__.py b/addons/fetchmail/__openerp__.py index f678d52a496..aad88a7ef50 100644 --- a/addons/fetchmail/__openerp__.py +++ b/addons/fetchmail/__openerp__.py @@ -24,7 +24,7 @@ { "name" : "Fetchmail Server", "version" : "1.0", - "depends" : ["base", "mail_gateway"], + "depends" : ["base"], "author" : "Tiny", "description": """Fetchail: * Fetch email from Pop / IMAP server diff --git a/addons/fetchmail/fetchmail_view.xml b/addons/fetchmail/fetchmail_view.xml index ced787408b3..510b31b6131 100644 --- a/addons/fetchmail/fetchmail_view.xml +++ b/addons/fetchmail/fetchmail_view.xml @@ -74,9 +74,15 @@