In my MUA (Thunderbird 15.0.1) both mail subjects are displayed like this:
Keine Mail zu "Abschlagsänderung" gefunden
Here is a snippet to reproduce it:
import email
for subject in ['Subject: Re: Keine Mail zu "=?utf-8?q?Abschlags=C3=A4nderung?=" gefunden',
'Subject: =?utf-8?q?Keine_Mail_zu_=22Abschlags=C3=A4nderung=22_gefunden?=']:
msg=email.message_from_string(subject)
print email.Header.decode_header(msg.get('subject'))
Output:
[('Re: Keine Mail zu "=?utf-8?q?Abschlags=C3=A4nderung?=" gefunden', None)]
[('Keine Mail zu "Abschlags\xc3\xa4nderung" gefunden', 'utf-8')]
The first header can't be parsed by python, but thunderbird does. It was created by KMail/1.11.4
How can I parse the first header with umlauts in Python 2.7?