-
Notifications
You must be signed in to change notification settings - Fork 30k
[FW][FIX] mail: normalized when formatting email_to / email_cc #190033
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
Conversation
@tde-banana-odoo cherrypicking of pull request #189409 failed. stdout:
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
4cda95b
to
3bade66
Compare
When preparing final outgoing email, partner email is normalized. We take their formatted email, which is their name and their normalized email. However email_to and email_cc are taken from input using 'email_split(_and_format)', which finds emails but do not format them. This leads to incoherent behavior as most emails are normalized as we generally always use partners, but not all. In this commit we now split, normalize and format email_to and email_cc in outgoing emails. This fixes a first issue where name are lost if a formatted email was entered in email_cc field. Only address was kept, now the name is correctly found and put back. This also fixes an issue for validated email detection, in order to compare normalized emails. This was introduced at odoo#185793 and may skip valid emails entered in email_to or email_cc. This commit backports a tool introduced at odoo/odoo@dd4709e which aims at allowing a quick convert from a string holding emails to a list of nicely formatted emails, using normalize version of email addresses. This is the standard we use in most flows. Task-4376876 Followup of task-3704658 X-Original-Commit: odoo/odoo@2baa481
3bade66
to
9729ffa
Compare
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 X-Original-Commit: odoo/odoo@bdccc57
9729ffa
to
74ff80b
Compare
@robodoo r+ rebase-ff |
Merge method set to rebase and fast-forward. |
@tde-banana-odoo staging failed: ci/runbot (view more at https://runbot.odoo.com/runbot/build/71863130) |
@robodoo retry |
@tde-banana-odoo staging failed: ci/runbot on 6629d8663218076d5d0c7fa8120d488b26fa0814 (view more at https://runbot.odoo.com/runbot/build/71897254) |
@robodoo retry |
When preparing final outgoing email, partner email is normalized. We take their formatted email, which is their name and their normalized email. However email_to and email_cc are taken from input using 'email_split(_and_format)', which finds emails but do not format them. This leads to incoherent behavior as most emails are normalized as we generally always use partners, but not all. In this commit we now split, normalize and format email_to and email_cc in outgoing emails. This fixes a first issue where name are lost if a formatted email was entered in email_cc field. Only address was kept, now the name is correctly found and put back. This also fixes an issue for validated email detection, in order to compare normalized emails. This was introduced at #185793 and may skip valid emails entered in email_to or email_cc. This commit backports a tool introduced at dd4709e which aims at allowing a quick convert from a string holding emails to a list of nicely formatted emails, using normalize version of email addresses. This is the standard we use in most flows. Task-4376876 Followup of task-3704658 X-original-commit: 2baa481 Part-of: #190033 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes #190033 X-original-commit: bdccc57 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
@robodoo retry |
@tde-banana-odoo retry makes no sense when the PR is not in error. |
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes odoo#190033 X-original-commit: odoo/odoo@bdccc57 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes #190033 closes #190531 X-original-commit: bdccc57 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes odoo#190033 X-original-commit: 0116f66 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes #190033 closes #190588 X-original-commit: 0116f66 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes odoo#190033 closes odoo#190531 X-original-commit: odoo/odoo@bdccc57 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes #190033 closes #190531 closes #190594 X-original-commit: bdccc57 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Due to history reasons, input given when inviting users is parsed in a simple way. However this create issues, notably because Odoo heavily relies on normalized emails. We therefore use the same heuristics as when creating partners given a potentially formatted input. Task-4376876 Followup of task-3704658 closes odoo/odoo#190033 closes odoo/odoo#190588 X-original-commit: 0116f6624439197f2dd875672cf6f3b1d4dfafda Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
When preparing final outgoing email, partner email is normalized. We take their formatted email, which is their name and their normalized email. However email_to and email_cc are taken from input using 'email_split(_and_format)', which finds emails but do not format them.
This leads to incoherent behavior as most emails are normalized as we generally always use partners, but not all. In this commit we now split, normalize and format email_to and email_cc in outgoing emails.
This fixes a first issue where name are lost if a formatted email was entered in email_cc field. Only address was kept, now the name is correctly found and put back.
This also fixes an issue for validated email detection, in order to compare normalized emails. This was introduced at #185793 and may skip valid emails entered in email_to or email_cc.
This commit backports a tool introduced at dd4709e which aims at allowing a quick convert from a string holding emails to a list of nicely formatted emails, using normalize version of email addresses. This is the standard we use in most flows.
Task-4376876
Followup of task-3704658
Forward-Port-Of: #189409