2012-10-21 | Paul Boddie | raw annotate files changeset graph | Improved the handling of gpg invocation failures. Added support for authenticating contributions sent by messages. Added test programs for various GPG instance methods. Added some documentation. |
1 #!/usr/bin/env python 2 3 from email.mime.multipart import MIMEMultipart 4 from email.mime.text import MIMEText 5 import sys 6 7 if __name__ == "__main__": 8 message = MIMEMultipart() 9 10 for arg in sys.argv[1:]: 11 text = MIMEText(arg, "moin") 12 message.attach(text) 13 14 text = message.as_string() 15 print text 16 17 # vim: tabstop=4 expandtab shiftwidth=4