1.1 --- a/README.txt Sat Dec 28 19:25:28 2013 +0100
1.2 +++ b/README.txt Thu Jan 02 19:43:06 2014 +0100
1.3 @@ -342,6 +342,7 @@
1.4
1.5 python tests/test_message.py collection update 'An update to the wiki.' \
1.6 'Another update.' \
1.7 +| python tests/test_message_wrap.py \
1.8 > test.txt \
1.9 && cat test.txt \
1.10 | gpg --armor -u 1C1AAF83 --detach-sig \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/tests/test_message_wrap.py Thu Jan 02 19:43:06 2014 +0100
2.3 @@ -0,0 +1,19 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +from email.mime.application import MIMEApplication
2.7 +import sys
2.8 +
2.9 +if __name__ == "__main__":
2.10 + text = sys.stdin.read()
2.11 +
2.12 + # Make a representation-insensitive container for the message.
2.13 +
2.14 + content = MIMEApplication(text)
2.15 +
2.16 + # Show the resulting message text.
2.17 +
2.18 + text = content.as_string()
2.19 +
2.20 + print text
2.21 +
2.22 +# vim: tabstop=4 expandtab shiftwidth=4