summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/email-unpack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-unpack.py b/Doc/includes/email-unpack.py
index e596b98..a8f712d 100644
--- a/Doc/includes/email-unpack.py
+++ b/Doc/includes/email-unpack.py
@@ -53,7 +53,7 @@ Usage: %prog [options] msgfile
# email message can't be used to overwrite important files
filename = part.get_filename()
if not filename:
- ext = mimetypes.guess_extension(part.get_type())
+ ext = mimetypes.guess_extension(part.get_content_type())
if not ext:
# Use a generic bag-of-bits extension
ext = '.bin'