summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/i18n
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-01-06 15:26:21 +0100
committerOlivier Dony <odo@openerp.com>2015-01-07 17:50:42 +0100
commit005e24fada851efaed112fce4244a3af225d8f74 (patch)
tree98043d9a2608fedbb4373237614be6dd69efee5f /addons/analytic_user_function/i18n
parent69bfc5e1086f6a187c26a19f2e307b6ffce962bf (diff)
[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.
Diffstat (limited to 'addons/analytic_user_function/i18n')
0 files changed, 0 insertions, 0 deletions