Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] ir_mail_server: IDNA and SMTPUTF8 capabilities #47709

Conversation

Julien00859
Copy link
Member

It has been a recurrent request from customers to be able to send email
messages to email addresses containing non-ascii characters. [IDNA] is a
domain extension to allow unicode characters in domain names. [SMTPUTF8]
is a SMTP extension to allow unicode in any header.

IDNA defines the [punycode] encoding which translates unicode to an
ascii representation. This encoding MUST be used to encode domains.

SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the
envelope.

[IDNA] https://tools.ietf.org/html/rfc5890
[SMTPUTF8] https://tools.ietf.org/html/rfc6531
[punycode] https://tools.ietf.org/html/rfc3492

Task: 2116928

@Julien00859 Julien00859 force-pushed the master-2116928-idna_email_address-juc branch from e14f2d9 to 401737d Compare March 16, 2020 14:30
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 16, 2020
@Julien00859 Julien00859 force-pushed the master-2116928-idna_email_address-juc branch 2 times, most recently from bda0179 to 652442b Compare March 16, 2020 15:49
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Mar 16, 2020
@Abridbus
Copy link
Contributor

Abridbus commented May 5, 2020

Related opw:
2248251
2229906

It has been a recurrent request from customers to be able to send email
messages to email addresses containing non-ascii characters. [IDNA] is a
domain extension to allow unicode characters in domain names. [SMTPUTF8]
is a SMTP extension to allow unicode in any header.

IDNA defines the [punycode] encoding which translates unicode to an
ascii representation. This encoding MUST be used to encode domains.

SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the
envelope.

[IDNA] https://tools.ietf.org/html/rfc5890
[SMTPUTF8] https://tools.ietf.org/html/rfc6531
[punycode] https://tools.ietf.org/html/rfc3492

Task: 2116928
opw-2229906
opw-2248251
@Julien00859 Julien00859 force-pushed the master-2116928-idna_email_address-juc branch from 652442b to f41ddb8 Compare May 5, 2020 09:19
@Julien00859 Julien00859 requested review from a team as code owners May 5, 2020 09:19
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label May 5, 2020
@seb-odoo seb-odoo removed request for a team May 5, 2020 09:22
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label May 5, 2020
Copy link
Member

@rco-odoo rco-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robodoo robodoo added the r+ 👌 label May 5, 2020
robodoo pushed a commit that referenced this pull request May 5, 2020
It has been a recurrent request from customers to be able to send email
messages to email addresses containing non-ascii characters. [IDNA] is a
domain extension to allow unicode characters in domain names. [SMTPUTF8]
is a SMTP extension to allow unicode in any header.

IDNA defines the [punycode] encoding which translates unicode to an
ascii representation. This encoding MUST be used to encode domains.

SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the
envelope.

[IDNA] https://tools.ietf.org/html/rfc5890
[SMTPUTF8] https://tools.ietf.org/html/rfc6531
[punycode] https://tools.ietf.org/html/rfc3492

Task: 2116928
opw-2229906
opw-2248251

closes #47709

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
@robodoo robodoo closed this May 5, 2020
@robodoo robodoo temporarily deployed to merge May 5, 2020 13:12 Inactive
Copy link
Contributor

@tde-banana-odoo tde-banana-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validation ! Some small comments.

It is funny to see that you link a task that is still in dev while your branch is merged, without any PO having tested anything. Was it so much important that there was no time pinging one of them ?

Many thanks,

@@ -25,16 +25,6 @@ def test_mail_message_notify_from_mail_mail(self):
self.assertSentEmail(mail.env.user.partner_id, ['test@example.com'])
self.assertEqual(len(self._mails), 1)

@mute_logger('odoo.addons.mail.models.mail_mail')
def test_mail_message_values_unicode(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the test ?

@@ -14,6 +14,7 @@
from email.utils import getaddresses
from lxml import etree
from werkzeug import urls
import idna
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you separate global imports and partial imports (and they should be ordered)

nimda95 pushed a commit to odoo-dev/odoo that referenced this pull request May 13, 2020
It has been a recurrent request from customers to be able to send email
messages to email addresses containing non-ascii characters. [IDNA] is a
domain extension to allow unicode characters in domain names. [SMTPUTF8]
is a SMTP extension to allow unicode in any header.

IDNA defines the [punycode] encoding which translates unicode to an
ascii representation. This encoding MUST be used to encode domains.

SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the
envelope.

[IDNA] https://tools.ietf.org/html/rfc5890
[SMTPUTF8] https://tools.ietf.org/html/rfc6531
[punycode] https://tools.ietf.org/html/rfc3492

Task: 2116928
opw-2229906
opw-2248251

closes odoo#47709

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
@fw-bot fw-bot deleted the master-2116928-idna_email_address-juc branch May 19, 2020 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants