summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-22 15:39:51 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-22 15:39:51 +0100
commita9246fbc5684a3b15e04cd92e5b9c1bfdc3cb4b8 (patch)
tree52722e9f5688411fcc2b8fe12cd0f2b7eef9009f /alot
parent52fed6d0f80ece648df8e6af3504551e0d6c291f (diff)
remove unused bulk
Diffstat (limited to 'alot')
-rw-r--r--alot/message.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/alot/message.py b/alot/message.py
index 463106c1..ec5bef34 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -237,16 +237,6 @@ def extract_body(mail, types=None):
return '\n\n'.join(body_parts)
-def decode_to_unicode(part):
- enc = part.get_content_charset()
- raw_payload = part.get_payload(decode=True)
- if enc:
- raw_payload = unicode(raw_payload, enc)
- else:
- raw_payload = unicode(raw_payload, errors='replace')
- return raw_payload
-
-
def decode_header(header):
"""decode a header value to a unicode string