diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-21 13:55:59 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-21 13:55:59 +0100 |
commit | 72e950eaa0102a1c667d7c3b727f0b320b92e356 (patch) | |
tree | e12b7bc2fa38cde31ae8d4d51d7cc1b08d6b0463 /alot | |
parent | e9bbee5f6ff00b3a3d2fd941f673a4a002ffee6b (diff) |
played with decode_header
Diffstat (limited to 'alot')
-rw-r--r-- | alot/message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/message.py b/alot/message.py index f7634649..0459649c 100644 --- a/alot/message.py +++ b/alot/message.py @@ -246,9 +246,9 @@ def decode_header(header): decoded_list = [] for v, enc in valuelist: if enc: - decoded_list.append(v.decode(enc)) - else: - decoded_list.append(v) + v = v.decode(enc, errors='replace') + #v = re.sub('^\s+', ' ', v, flags=re.MULTILINE) + decoded_list.append(v) return u' '.join(decoded_list) |