import fileinput import email from email.Utils import parseaddr def parse(): raw_message = \'\'.join([line for line in fileinput.input()]) message = email.messa