2013-12-17 | Paul Boddie | raw annotate files changeset graph | Fixed the recipient dictionary format so that different recipient types can be represented properly. Introduced filtering to avoid showing irrelevant recipients for certain operations. Tidied up the HTTP responses when certain operations cannot be performed. |
1 #!/usr/bin/env python 2 3 from MoinMessage import GPG 4 from email.parser import Parser 5 import sys 6 7 if __name__ == "__main__": 8 message = Parser().parse(sys.stdin) 9 content, signature = message.get_payload() 10 11 gpg = GPG() 12 print gpg.verifyMessage(signature.get_payload(), content.as_string()) 13 14 # vim: tabstop=4 expandtab shiftwidth=4