2012-10-19 | Paul Boddie | raw annotate files changeset graph | Moved decryption and verification support into MoinMessage. Introduced a GPG class to hold common configuration information and provide a more natural programming interface. Added a setup script. |
1 #!/usr/bin/env python 2 3 from email.mime.multipart import MIMEMultipart 4 from email.mime.text import MIMEText 5 6 if __name__ == "__main__": 7 message = MIMEMultipart() 8 9 text1 = MIMEText("An update to the Wiki.", "moin") 10 11 text2 = MIMEText("Another update to the Wiki.", "moin") 12 13 message.attach(text1) 14 message.attach(text2) 15 16 text = message.as_string() 17 print text 18 19 # vim: tabstop=4 expandtab shiftwidth=4