import sys, emailmsg = email.message_from_file(sys.stdin)print " *** Headers in message: "for header, value in msg.items(): print header + ":" print " " + valueif msg.is_multipart(): print "exiting." sys.exit(1)if 'subject' in msg: print "Subject: ", msg['subject']print msg.get_payload()
Name (required)
email (will not be published) (required)
Website