[FIX] ir.mail.server: restore parsing of multiple RFC2822 addresses including non...
authorOlivier Dony <odo@openerp.com>
Fri, 10 Oct 2014 15:04:03 +0000 (17:04 +0200)
committerOlivier Dony <odo@openerp.com>
Fri, 10 Oct 2014 16:32:00 +0000 (18:32 +0200)
commit1b49a876196de1f4b6568ff1751f7c7c6b2d5002
tree62e6084c24d5573d34ced64be460d04d191626cb
parentd38adf3d9247fc65d83ea57edfaa5fba7b82404c
[FIX] ir.mail.server: restore parsing of multiple RFC2822 addresses including non-ASCII chars

Rev f2cf6ced1 modified RFC2822 parsing in order to better support
unicode characters inside the Name part of an address header.
However the patch broke handling of multiple addresses (comma
separated) - silently discarding all recipients except the
first one, as soon as any non-ASCII character was present.

This patch restores the functionality while preserving the
fix from f2cf6ced1, and simplifies the code using email.utils
utility functions.

Fixes (again) lp:1272610, OPW 607683
openerp/addons/base/ir/ir_mail_server.py