1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/test_add_timestamp.py Sun Mar 30 23:58:12 2014 +0200
1.3 @@ -0,0 +1,18 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from email import message_from_string
1.7 +from MoinMessage import timestamp
1.8 +import sys
1.9 +
1.10 +if __name__ == "__main__":
1.11 + text = sys.stdin.read()
1.12 +
1.13 + message = message_from_string(text)
1.14 + timestamp(message)
1.15 +
1.16 + # Show the resulting message text.
1.17 +
1.18 + text = message.as_string()
1.19 + print text
1.20 +
1.21 +# vim: tabstop=4 expandtab shiftwidth=4