import email from email.header import Header, decode_header, make_header m = email.message_from_string("""Subject: =?utf-8?Q?2010_Foundation_Salary_and_Benefits_Report;_Important_Legislative_Efforts?= Mime-Version: 1.0 Body goes here. """) print 'This subject line is broken incorrectly:' S = m.as_string() print S # Convert to a Header object m['subject'] = make_header(decode_header(m['subject'])) print 'This subject line is broken correctly:' print m