1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/test_message_wrap.py Thu Jan 02 19:43:06 2014 +0100
1.3 @@ -0,0 +1,19 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from email.mime.application import MIMEApplication
1.7 +import sys
1.8 +
1.9 +if __name__ == "__main__":
1.10 + text = sys.stdin.read()
1.11 +
1.12 + # Make a representation-insensitive container for the message.
1.13 +
1.14 + content = MIMEApplication(text)
1.15 +
1.16 + # Show the resulting message text.
1.17 +
1.18 + text = content.as_string()
1.19 +
1.20 + print text
1.21 +
1.22 +# vim: tabstop=4 expandtab shiftwidth=4