2014-02-02 | Paul Boddie | file changeset files shortlog | Moved conditional signing logic into a separate function. Added a utility function to get the relaying user. Tidied up the "too old" message rejection response to use formatted times. |
paul@15 | 1 | #!/usr/bin/env python |
paul@15 | 2 | |
paul@15 | 3 | from MoinMessage import Message |
paul@15 | 4 | import sys |
paul@15 | 5 | |
paul@15 | 6 | if __name__ == "__main__": |
paul@15 | 7 | message = Message(sys.stdin.read()) |
paul@15 | 8 | |
paul@15 | 9 | for update in message.updates: |
paul@15 | 10 | print update.get_payload() |
paul@15 | 11 | print |
paul@15 | 12 | |
paul@15 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |