From c996efa2fe65e87ef62e4f0f4520ee83ed9ea5cd Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 22 Jul 2011 18:34:57 +0200 Subject: [IMP] mail: another pass of cleanup/refactoring of mail features - finish renaming bzr revid: odo@openerp.com-20110722163457-7g9ngdb2p0bixcst --- addons/mail/scripts/__init__.py | 6 ++---- addons/mail/scripts/openerp_mailgate/__init__.py | 2 +- addons/mail/scripts/openerp_mailgate/openerp_mailgate.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'addons/mail/scripts') diff --git a/addons/mail/scripts/__init__.py b/addons/mail/scripts/__init__.py index 9d7f6bf56c9..3b6a8c7e4b0 100644 --- a/addons/mail/scripts/__init__.py +++ b/addons/mail/scripts/__init__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). +# Copyright (C) 2009-2010 OpenERP SA (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -19,6 +19,4 @@ # ############################################################################## -import openerp_mailgate - - +import openerp_mailgate \ No newline at end of file diff --git a/addons/mail/scripts/openerp_mailgate/__init__.py b/addons/mail/scripts/openerp_mailgate/__init__.py index 4f7fae0a190..de2e2bf390d 100644 --- a/addons/mail/scripts/openerp_mailgate/__init__.py +++ b/addons/mail/scripts/openerp_mailgate/__init__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). +# Copyright (C) 2009-2010 OpenERP SA (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/addons/mail/scripts/openerp_mailgate/openerp_mailgate.py b/addons/mail/scripts/openerp_mailgate/openerp_mailgate.py index 68e9a0849db..d80da98509a 100644 --- a/addons/mail/scripts/openerp_mailgate/openerp_mailgate.py +++ b/addons/mail/scripts/openerp_mailgate/openerp_mailgate.py @@ -54,7 +54,7 @@ class email_parser(object): try: # pass message as bytes because we don't know its encoding until we parse its headers # and hence can't convert it to utf-8 for transport - res_id = self.rpc('email.thread', 'process_email', self.model, xmlrpclib.Binary(message), custom_values) + res_id = self.rpc('mail.thread', 'process_email', self.model, xmlrpclib.Binary(message), custom_values) except Exception: logger = logging.getLogger('mail-gateway') logger.warning('Failed to process incoming email. Source of the failed mail is available at debug level.', exc_info=True) -- cgit v1.2.3