summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-21 13:55:59 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-21 13:55:59 +0100
commit72e950eaa0102a1c667d7c3b727f0b320b92e356 (patch)
treee12b7bc2fa38cde31ae8d4d51d7cc1b08d6b0463 /alot
parente9bbee5f6ff00b3a3d2fd941f673a4a002ffee6b (diff)
played with decode_header
Diffstat (limited to 'alot')
-rw-r--r--alot/message.py6
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)