Module
mail_composer_cc_bcc
Describe the bug
Sending a message with:
To: mail_to@example.com
BCC: mail_bcc@example.com
the outgoing e-mails will receive an extra header X-Odoo-Bcc: mail_bcc@example.com.
This means, that mail_bcc will get leaked to mail_to in the source code (not shown in the e-mail client).
To Reproduce
Affected versions: [18.0], maybe earlier versions, too
Steps to reproduce the behavior:
To & BCC:
- Send message in chatter (e.g. crm.lead):
To: mail_to@example.com and BCC: mail_bcc@example.com
- Inspect source code of both incoming e-mails for
X-Odoo-Bcc: mail_bcc@example.com
- Both, the recipient's and BCC's e-mail will contain the header
X-Odoo-Bcc: mail_bcc@example.com
CC & BCC:
- Send message in chatter (e.g. crm.lead):
CC: mail_cc@example.com and BCC: mail_bcc@example.com
- Inspect source code of both incoming e-mails for
X-Odoo-Bcc: mail_bcc@example.com
- Both, the recipient's and BCC's e-mail will contain the header
X-Odoo-Bcc: mail_bcc@example.com
Expected behavior
I don't know the history of X-Odoo-Bcc, but I would not expect this header in any E-mail.
At least not in the E-mail sent to both, To: and/or CC:.
Edge Case: To, CC, BCC
If the message is sent to three contacts, one in To, CC and BCC, the header X-Odoo-Bcc will not be added to the message
Module
mail_composer_cc_bcc
Describe the bug
Sending a message with:
To:
mail_to@example.comBCC:
mail_bcc@example.comthe outgoing e-mails will receive an extra header
X-Odoo-Bcc: mail_bcc@example.com.This means, that
mail_bccwill get leaked tomail_toin the source code (not shown in the e-mail client).To Reproduce
Affected versions: [18.0], maybe earlier versions, too
Steps to reproduce the behavior:
To & BCC:
To: mail_to@example.comandBCC: mail_bcc@example.comX-Odoo-Bcc: mail_bcc@example.comX-Odoo-Bcc: mail_bcc@example.comCC & BCC:
CC: mail_cc@example.comandBCC: mail_bcc@example.comX-Odoo-Bcc: mail_bcc@example.comX-Odoo-Bcc: mail_bcc@example.comExpected behavior
I don't know the history of
X-Odoo-Bcc, but I would not expect this header in any E-mail.At least not in the E-mail sent to both,
To:and/orCC:.Edge Case: To, CC, BCC
If the message is sent to three contacts, one in To, CC and BCC, the header
X-Odoo-Bccwill not be added to the message