summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 177cd66e..19976a4c 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -272,6 +272,7 @@ def guess_encoding(blob):
return m.buffer(blob)
+# TODO: make this work on blobs, not paths
def mimewrap(path, filename=None, ctype=None):
content = open(path, 'rb').read()
ctype = ctype or guess_mimetype(content)