~openerp-dev/openobject-addons/6.1-opw-574745-skh

Viewing all changes in revision 6772.

  • Committer: Olivier Dony
  • Date: 2012-04-27 14:04:27 UTC
  • Revision ID: odo@openerp.com-20120427140427-3qfctfqzrsexgkac
[FIX] mail.thread: fix SMTP headers when forwarding messages

mail.message.Message has case-insensitive behavior
for headers, but setting the header value *adds* a
new header even if the same header already exists.
This caused multiple issues when forwarding, because
the forwarded mail kept the original To: header.
Also changed the code to use capitalized header
names at all times, just for consistency.
Also removed unused variable ``mail_message``.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: