2014-01-07 | Paul Boddie | raw annotate files changeset graph | Added program argument checking. |
1 #!/usr/bin/env python 2 3 from email.mime.application import MIMEApplication 4 import sys 5 6 if __name__ == "__main__": 7 text = sys.stdin.read() 8 9 # Make a representation-insensitive container for the message. 10 11 content = MIMEApplication(text) 12 13 # Show the resulting message text. 14 15 text = content.as_string() 16 17 print text 18 19 # vim: tabstop=4 expandtab shiftwidth=4