diff options
| author | Stefan Rijnhart <stefan@opener.am> | 2017-11-27 10:57:59 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@odoo.com> | 2017-11-27 10:58:16 +0100 |
| commit | 10de33a57e14d8e767411f474afe3b549cb8244b (patch) | |
| tree | 7ece5282407028092d2180e11390301ead92d009 /addons/web/static/lib/bootstrap-datetimepicker/src | |
| parent | 8214395a495da91840b3155bed8d658e1d16d37f (diff) | |
[FIX] mail: handle emails with a single non-text part
SAP sends out emails that only contain a PDF part, without a text or
html body, e.g.:
X-Mailer: SAP NetWeaver 751
Content-Type: application/pdf; name="Afleveringsbewijs.pdf"
Content-Transfer-Encoding: base64
Content-Description: Afleveringsbewijs
Before this patch, this single non-text part was parsed into the body of
the final message, as if it was a text part.
Making the check for the main part more restrictive solves the issue, as
there is no reason to assume that a non-multipart content is
necessarily of text/* type. This PR also includes a regression test.
Closes #21102
Diffstat (limited to 'addons/web/static/lib/bootstrap-datetimepicker/src')
0 files changed, 0 insertions, 0 deletions
