[FIX] fetchmail_notify_error_to_sender: fix test
parent
236b976b06
commit
424f473559
|
@ -14,6 +14,7 @@
|
|||
'license': 'AGPL-3',
|
||||
'depends': [
|
||||
'fetchmail',
|
||||
'test_mail',
|
||||
],
|
||||
'data': [
|
||||
'views/fetchmail_view.xml',
|
||||
|
|
|
@ -40,14 +40,14 @@ msgid "Email Thread"
|
|||
msgstr "Tema del Correu electrònic "
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "Servidor POP/IMAP"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -55,8 +55,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "Servidor POP/IMAP"
|
||||
|
|
|
@ -40,14 +40,14 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP-Server"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -55,8 +55,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "POP/IMAP-Server"
|
||||
|
|
|
@ -82,14 +82,14 @@ msgid "Email Thread"
|
|||
msgstr "Hilo correo electrónico"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "Servidor POP/IMAP"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -97,8 +97,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "Servidor POP/IMAP"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
|
@ -33,13 +33,13 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
|
@ -48,7 +48,7 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Set here the template to use to send notice to sender when errors occur while fetching email"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -51,14 +51,14 @@ msgid "Email Thread"
|
|||
msgstr "Discussion de courriel"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr "Erreur dans le modèle de notice"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "Serveur POP/IMAP"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -67,10 +67,13 @@ msgstr ""
|
|||
"Reçu une erreur avec : ${ctx.get('sender_message').get('subject')|safe}"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
"Choisissez ici le modèle à utiliser pour informer l'expéditeur lorsque des "
|
||||
"erreurs surviennent lors de la récupération du courriel. "
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "Serveur POP/IMAP"
|
||||
|
|
|
@ -41,14 +41,14 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP Server"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -56,8 +56,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "POP/IMAP Server"
|
||||
|
|
|
@ -52,14 +52,14 @@ msgid "Email Thread"
|
|||
msgstr "Discussione Mail"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr "Template Notifica Errore"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "Server POP/IMAP"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -67,10 +67,13 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr "Ricezione errore con: ${ctx.get('sender_message').get('subject')|safe}"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
"Imposta qui il template da usare per inviare una notifica al mittente quando "
|
||||
"si verificano errori durante il recupero dell'e-mail"
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "Server POP/IMAP"
|
||||
|
|
|
@ -41,14 +41,14 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "Servidor POP/IMAP"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -56,8 +56,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "Servidor POP/IMAP"
|
||||
|
|
|
@ -40,13 +40,13 @@ msgid "Email Thread"
|
|||
msgstr "Tópico de Email"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
|
@ -55,7 +55,7 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
|
|
|
@ -41,14 +41,14 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP strežnik"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -56,8 +56,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "POP/IMAP strežnik"
|
||||
|
|
|
@ -52,14 +52,14 @@ msgid "Email Thread"
|
|||
msgstr "Eposta konuşması"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr "Hata bildirim şablonu"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP sunucu"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -67,10 +67,13 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr "Alınan hata : ${ctx.get('sender_message').get('subject')|safe}"
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
"E-posta alınırken oluşan hatalarda gönderilecek bildirim mesajı için şablonu "
|
||||
"belirleyin."
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "POP/IMAP sunucu"
|
||||
|
|
|
@ -41,14 +41,14 @@ msgid "Email Thread"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,field_description:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid "Error notice template"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP 服务器"
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice
|
||||
|
@ -56,8 +56,11 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
|
|||
msgstr ""
|
||||
|
||||
#. module: fetchmail_notify_error_to_sender
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server_error_notice_template_id
|
||||
#: model:ir.model.fields,help:fetchmail_notify_error_to_sender.field_fetchmail_server__error_notice_template_id
|
||||
msgid ""
|
||||
"Set here the template to use to send notice to sender when errors occur "
|
||||
"while fetching email"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "POP/IMAP Server"
|
||||
#~ msgstr "POP/IMAP 服务器"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.13.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Fetchmail Notify Error to Sender</title>
|
||||
<style type="text/css">
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
import socket
|
||||
from odoo.addons.test_mail.data.test_mail_data import MAIL_TEMPLATE
|
||||
from odoo.addons.test_mail.tests.test_mail_gateway import TestMailgateway
|
||||
from odoo.tools import mute_logger
|
||||
from email.utils import formataddr
|
||||
|
||||
|
||||
class TestFetchmailNotifyErrorToSender(TestMailgateway):
|
||||
|
@ -28,7 +28,7 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
|
|||
cc_email='',
|
||||
msg_id='<1198923581.41972151344608186760.JavaMail@agrolait.com>',
|
||||
model=None, target_model='mail.test.simple', target_field='name',
|
||||
ctx=None
|
||||
ctx=None,
|
||||
):
|
||||
self.assertFalse(self.env[target_model].search([
|
||||
(target_field, '=', subject),
|
||||
|
@ -49,7 +49,7 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
|
|||
|
||||
@mute_logger('odoo.addons.mail.models.mail_thread', 'odoo.models')
|
||||
def test_message_process(self):
|
||||
email_from = 'valid.lelitre@agrolait.com'
|
||||
email_from = formataddr((self.partner_1.name, self.partner_1.email))
|
||||
|
||||
count_return_mails_before = self.env['mail.mail'].search_count([
|
||||
('email_to', '=', email_from),
|
||||
|
@ -61,13 +61,13 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
|
|||
email_from=email_from,
|
||||
to_email='noone@example.com',
|
||||
subject='spam',
|
||||
extra='In-Reply-To: <12321321-openerp-%d-mail.test@%s>' % (
|
||||
self.test_record.id,
|
||||
socket.gethostname(),
|
||||
),
|
||||
extra='In-Reply-To: <12321321-openerp-%d-mail.test.simple@%s'
|
||||
'>' % (self.test_record.id,
|
||||
socket.gethostname(),
|
||||
),
|
||||
ctx={
|
||||
'fetchmail_server_id': self.fetchmail_server.id,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
count_return_mails_after = self.env['mail.mail'].search_count([
|
||||
|
|
Loading…
Reference in New Issue