diff --git a/Doc/includes/email-headers.py b/Doc/includes/email-headers.py index edaac235f35e..664c3ff1ca8b 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: \n'