[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)
authorAnael Closson <acl@odoo.com>
Wed, 18 Jun 2014 12:33:35 +0000 (14:33 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 18 Jun 2014 12:39:37 +0000 (14:39 +0200)
commit4bad513d29596abf2c614834a7592758186f0851
tree27319e3112fb14ef48a46dcf58306bbd4e6e1cfb
parent481c64e077132c37acc0bb8c83dba6e937588032
[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)

When parsing incoming messages, ignore white-space around
In-Reply-To headers, and extract message-id items inside
the References header using a regex.
This actually serves as a workaround for broken MTAs
mangling References (such as outlook.com nesting past ones
with commas, violating RFC2822).

Closes #516 as a manual rebase.
addons/mail/mail_thread.py