paul@90 | 1 | #!/usr/bin/env python |
paul@90 | 2 | |
paul@90 | 3 | from email.mime.application import MIMEApplication |
paul@90 | 4 | import sys |
paul@90 | 5 | |
paul@90 | 6 | if __name__ == "__main__": |
paul@90 | 7 | text = sys.stdin.read() |
paul@90 | 8 | |
paul@90 | 9 | # Make a representation-insensitive container for the message. |
paul@90 | 10 | |
paul@90 | 11 | content = MIMEApplication(text) |
paul@90 | 12 | |
paul@90 | 13 | # Show the resulting message text. |
paul@90 | 14 | |
paul@90 | 15 | text = content.as_string() |
paul@90 | 16 | |
paul@90 | 17 | print text |
paul@90 | 18 | |
paul@90 | 19 | # vim: tabstop=4 expandtab shiftwidth=4 |