odoo/addons/mail/tests
Martin Trigaux bd52298073 [IMP] mail: parsing emails with several html parts
If an email contains several text/html parts inside a multipart email, the previous code was only keeping the last content part.
The Content-Type: multipart/mixed allows several independent part (RFC1341 7.2.2), so two html is technically valid.
With this patch, the two parts are concatenated. (opw 614755)

Modify append_content_to_html regex to make sure the regex keeps the content of the html instead of removing it.
e.g.: "123 <html> 456 </html> 789" used to be stripped to "123  789" while we expect "123 456 789"
2014-10-09 13:53:23 +02:00
..
__init__.py [FIX] Forgotten to uncomment commented tests. 2013-03-20 17:18:30 +01:00
test_invite.py [IMP] mail: updated and improved tests. 2012-12-12 11:42:20 +01:00
test_mail_base.py [REF] mail: refactored tests. mailgateway tests are put into a separate file; message_post tests have been a bit cleaned and improved. Also removed an unnecessary mockup. 2013-03-20 12:41:11 +01:00
test_mail_features.py [FIX] mail: to/from/reply-to addresses formated according to RFC2822 2014-08-12 13:40:45 +02:00
test_mail_gateway.py [IMP] mail: parsing emails with several html parts 2014-10-09 13:53:23 +02:00
test_mail_message.py [CLEAN] mail: stop doing ugly things with partner_ids values before passing values to mail_message.create(). 2013-02-21 10:59:06 +01:00
test_message_read.py [MERGE] Various fixes and improvements in mail. 2012-12-21 14:11:08 +01:00