odoo/addons/mail/tests
Olivier Dony 005e24fada [FIX] mail.thread: correct matching when finding author + test
The previous matching rules were too fuzzy and allowed random
prefix-match or tail-match of other user's emails.
For example when looking up a partner matching 'foo@bar.com'
the system would sometimes find 'dom.foo@bar.com' instead,
or 'foo@bar.com.tw'.

Fixed by only allowing direct case-insensitive email match
of an addr-spec, or substring match of the addr-spec enclosed
in angle brackets, within a name-addr pair.
See also RFC5322, section 3.4

Also adapted related message_find_partner_from_emails() method
to factor out the partner email resolution mechanism to avoid
the same problem.

Adds corresponding regression test.
2015-01-07 17:50:42 +01: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 [FIX] mail.thread: correct matching when finding author + test 2015-01-07 17:50:42 +01: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