2012-10-21 | Paul Boddie | file changeset files shortlog | Changed the sendMessage function to use URLs instead of hosts and paths. Added a SendMessage action for use within MoinMoin. Added documentation about the different configuration settings and pages. Attempted to improve the homedir initialisation script to fix permissions issues. |
paul@1 | 1 | #!/usr/bin/env python |
paul@1 | 2 | |
paul@1 | 3 | from email.mime.multipart import MIMEMultipart |
paul@1 | 4 | from email.mime.text import MIMEText |
paul@11 | 5 | import sys |
paul@1 | 6 | |
paul@1 | 7 | if __name__ == "__main__": |
paul@1 | 8 | message = MIMEMultipart() |
paul@1 | 9 | |
paul@11 | 10 | for arg in sys.argv[1:]: |
paul@11 | 11 | text = MIMEText(arg, "moin") |
paul@11 | 12 | message.attach(text) |
paul@1 | 13 | |
paul@1 | 14 | text = message.as_string() |
paul@1 | 15 | print text |
paul@1 | 16 | |
paul@1 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |