Some mail clients set a wrong content-type for PDF attachments, they set `binary/octet-stream` which doesn't exist[^1]. Odoo would crash with a traceback in case it tried to extract the content of such malformed attachment because Python doesn't know how to decode such content-types. Looking at the actual content of the emails we received, we would had expected the content-type to be `application/octet-stream` instead. It is fair to assume that the mail client software is buggy or poorly configured and that it assumes that `application/octet-stream` and `binary/octet-stream` represent the same thing. Following Postel's Law[^2], it is better to still handle those malformed emails, assuming the content-type is `application/octet-stream`. opw-3030113 opw-2716507 [^1]: https://www.rfc-editor.org/rfc/rfc2046#section-3 [^2]: https://en.wikipedia.org/wiki/Robustness_principle closes odoo/odoo#107317 X-original-commit: e6169325b968711a0a28444818b34aa1932a6bae Signed-off-by: Julien Castiaux <juc@odoo.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Julien Castiaux <juc@odoo.com>
Odoo Enterprise Social Network
Connect with experts, follow what interests you, share documents and promote best practices with Odoo Enterprise Social Network. Get work done with effective collaboration across departments, geographies, documents and business applications. All of this while decreasing email overload.
Connect with experts
Next time you have a question for the marketing, sales, R&D or any other department, don't send an email blast-post the question to Odoo and get answers from the right persons.
Follow what interests you
Want to get informed about new product features, hot deals, bottlenecks in projects or any other event? Just follow what interests you to get the information you need what you need; no more, no less.
Get Things Done
You can process (not only read) the inbox and easily mark messages for future actions. Start feeling the pleasure of having an empty inbox every day; no more overload of information.
Promote best practices
Cut back on meetings and email chains by working together in groups of interests. Create a group to let people share files, discuss ideas, and vote to promote best practices.
Improve Access to Information and Expertise
Break down information silos. Search across your existing systems to find the answers and expertise you need to complete projects quickly.
Collaborate securely
Set the right security policy; public, private or on invitation only -- according to the information sensitivity.
A Twitter-like Network For My Company
Make every employee feel more connected and engaged with twitter-like features for your own company. Follow people, share best practices, 'like' top ideas, etc.