2012-10-29 | Paul Boddie | file changeset files shortlog | Added message interpretation and parsing to the Message class. Changed the PostMessage action to use the Message class for the interpretation of messages. Changed the message test to use the Message class and added a test of message parsing using the class. Added a Mailbox class for reading and writing bundles of messages. |
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 |