email: When setting an 8bit CTE, remove the old header
authorW. Trevor King <wking@tremily.us>
Wed, 23 Jan 2013 23:00:57 +0000 (18:00 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 23 Jan 2013 23:00:57 +0000 (18:00 -0500)
commitb0014c77d9c1ab7828dbdefcfa5034739ae9b248
treec6d72779b284b4f60b8aab4b2066a4918450742d
parent7253c147ba3b10e4a00e4cf2027f90e4559b87a6
email: When setting an 8bit CTE, remove the old header

From the docs [1]:

  Note that this does not overwrite or delete any existing header with
  the same name. If you want to ensure that the new header is the only
  one present in the message with field name name, delete the field
  first, e.g.:

    del msg['subject']
    msg['subject'] = 'Python roolz!'

[1]: http://docs.python.org/3/library/email.message.html#email.message.Message.__setitem__

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/email.py
test/bbc-chinese/2.expected