summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/email-headers.py')
-rw-r--r--Doc/includes/email-headers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-headers.py b/Doc/includes/email-headers.py
index edaac23..664c3ff 100644
--- a/Doc/includes/email-headers.py
+++ b/Doc/includes/email-headers.py
@@ -2,7 +2,7 @@
from email.parser import Parser
# If the e-mail headers are in a file, uncomment this line:
-#headers = Parser().parse(messagefile)
+#headers = Parser().parse(open(messagefile, 'r'))
# Or for parsing headers in a string, use:
headers = Parser().parsestr('From: <user@example.com>\n'