# HG changeset patch # User Paul Boddie # Date 1396216692 -7200 # Node ID 661d772305fdfe6c285ae10758d62e2ba12734ca # Parent 6ecdb56295fe47c2297c3ae559b2a4e3ae3747e1 Added a simple timestamping script for messages before any eventual signing. diff -r 6ecdb56295fe -r 661d772305fd tests/test_add_timestamp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_add_timestamp.py Sun Mar 30 23:58:12 2014 +0200 @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +from email import message_from_string +from MoinMessage import timestamp +import sys + +if __name__ == "__main__": + text = sys.stdin.read() + + message = message_from_string(text) + timestamp(message) + + # Show the resulting message text. + + text = message.as_string() + print text + +# vim: tabstop=4 expandtab shiftwidth=4