[FIX] fetchmail_notify_error_to_sender: fix test

pull/2982/head
mreficent 2019-03-12 19:53:28 +01:00 committed by BT-cjimeno
parent 236b976b06
commit 424f473559
No known key found for this signature in database
15 changed files with 87 additions and 56 deletions

View File

@ -14,6 +14,7 @@
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': [ 'depends': [
'fetchmail', 'fetchmail',
'test_mail',
], ],
'data': [ 'data': [
'views/fetchmail_view.xml', 'views/fetchmail_view.xml',

View File

@ -40,14 +40,14 @@ msgid "Email Thread"
msgstr "Tema del Correu electrònic " msgstr "Tema del Correu electrònic "
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "Servidor POP/IMAP" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "Servidor POP/IMAP"

View File

@ -40,14 +40,14 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "POP/IMAP-Server" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP-Server"

View File

@ -82,14 +82,14 @@ msgid "Email Thread"
msgstr "Hilo correo electrónico" msgstr "Hilo correo electrónico"
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "Servidor POP/IMAP" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "Servidor POP/IMAP"

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 11.0\n" "Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
@ -33,13 +33,13 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
@ -48,7 +48,7 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Set here the template to use to send notice to sender when errors occur while fetching email"
msgstr "" msgstr ""

View File

@ -51,14 +51,14 @@ msgid "Email Thread"
msgstr "Discussion de courriel" msgstr "Discussion de courriel"
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "Erreur dans le modèle de notice" msgstr "Erreur dans le modèle de notice"
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "Serveur POP/IMAP" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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}" "Reçu une erreur avec : ${ctx.get('sender_message').get('subject')|safe}"
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
"Choisissez ici le modèle à utiliser pour informer l'expéditeur lorsque des " "Choisissez ici le modèle à utiliser pour informer l'expéditeur lorsque des "
"erreurs surviennent lors de la récupération du courriel. " "erreurs surviennent lors de la récupération du courriel. "
#~ msgid "POP/IMAP Server"
#~ msgstr "Serveur POP/IMAP"

View File

@ -41,14 +41,14 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "POP/IMAP Server" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP Server"

View File

@ -52,14 +52,14 @@ msgid "Email Thread"
msgstr "Discussione Mail" msgstr "Discussione Mail"
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "Template Notifica Errore" msgstr "Template Notifica Errore"
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "Server POP/IMAP" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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}" msgstr "Ricezione errore con: ${ctx.get('sender_message').get('subject')|safe}"
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
"Imposta qui il template da usare per inviare una notifica al mittente quando " "Imposta qui il template da usare per inviare una notifica al mittente quando "
"si verificano errori durante il recupero dell'e-mail" "si verificano errori durante il recupero dell'e-mail"
#~ msgid "POP/IMAP Server"
#~ msgstr "Server POP/IMAP"

View File

@ -41,14 +41,14 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "Servidor POP/IMAP" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "Servidor POP/IMAP"

View File

@ -40,13 +40,13 @@ msgid "Email Thread"
msgstr "Tópico de Email" msgstr "Tópico de Email"
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
@ -55,7 +55,7 @@ msgid "Receiving error with: ${ctx.get('sender_message').get('subject')|safe}"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"

View File

@ -41,14 +41,14 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "POP/IMAP strežnik" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP strežnik"

View File

@ -52,14 +52,14 @@ msgid "Email Thread"
msgstr "Eposta konuşması" msgstr "Eposta konuşması"
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "Hata bildirim şablonu" msgstr "Hata bildirim şablonu"
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "POP/IMAP sunucu" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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}" msgstr "Alınan hata : ${ctx.get('sender_message').get('subject')|safe}"
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
"E-posta alınırken oluşan hatalarda gönderilecek bildirim mesajı için şablonu " "E-posta alınırken oluşan hatalarda gönderilecek bildirim mesajı için şablonu "
"belirleyin." "belirleyin."
#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP sunucu"

View File

@ -41,14 +41,14 @@ msgid "Email Thread"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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" msgid "Error notice template"
msgstr "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server #: model:ir.model,name:fetchmail_notify_error_to_sender.model_fetchmail_server
msgid "POP/IMAP Server" msgid "Incoming Mail Server"
msgstr "POP/IMAP 服务器" msgstr ""
#. module: fetchmail_notify_error_to_sender #. module: fetchmail_notify_error_to_sender
#: model:mail.template,subject:fetchmail_notify_error_to_sender.email_template_error_notice #: 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 "" msgstr ""
#. module: fetchmail_notify_error_to_sender #. 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 "" msgid ""
"Set here the template to use to send notice to sender when errors occur " "Set here the template to use to send notice to sender when errors occur "
"while fetching email" "while fetching email"
msgstr "" msgstr ""
#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP 服务器"

View File

@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <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> <title>Fetchmail Notify Error to Sender</title>
<style type="text/css"> <style type="text/css">

View File

@ -1,10 +1,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import socket import socket
from odoo.addons.test_mail.data.test_mail_data import MAIL_TEMPLATE 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.addons.test_mail.tests.test_mail_gateway import TestMailgateway
from odoo.tools import mute_logger from odoo.tools import mute_logger
from email.utils import formataddr
class TestFetchmailNotifyErrorToSender(TestMailgateway): class TestFetchmailNotifyErrorToSender(TestMailgateway):
@ -28,7 +28,7 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
cc_email='', cc_email='',
msg_id='<1198923581.41972151344608186760.JavaMail@agrolait.com>', msg_id='<1198923581.41972151344608186760.JavaMail@agrolait.com>',
model=None, target_model='mail.test.simple', target_field='name', model=None, target_model='mail.test.simple', target_field='name',
ctx=None ctx=None,
): ):
self.assertFalse(self.env[target_model].search([ self.assertFalse(self.env[target_model].search([
(target_field, '=', subject), (target_field, '=', subject),
@ -49,7 +49,7 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
@mute_logger('odoo.addons.mail.models.mail_thread', 'odoo.models') @mute_logger('odoo.addons.mail.models.mail_thread', 'odoo.models')
def test_message_process(self): 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([ count_return_mails_before = self.env['mail.mail'].search_count([
('email_to', '=', email_from), ('email_to', '=', email_from),
@ -61,13 +61,13 @@ class TestFetchmailNotifyErrorToSender(TestMailgateway):
email_from=email_from, email_from=email_from,
to_email='noone@example.com', to_email='noone@example.com',
subject='spam', subject='spam',
extra='In-Reply-To: <12321321-openerp-%d-mail.test@%s>' % ( extra='In-Reply-To: <12321321-openerp-%d-mail.test.simple@%s'
self.test_record.id, '>' % (self.test_record.id,
socket.gethostname(), socket.gethostname(),
), ),
ctx={ ctx={
'fetchmail_server_id': self.fetchmail_server.id, 'fetchmail_server_id': self.fetchmail_server.id,
} }
) )
count_return_mails_after = self.env['mail.mail'].search_count([ count_return_mails_after = self.env['mail.mail'].search_count([