Upgraded simple-mailer to revision [1f3f19a25320], integrating a patch from “pinchies” in Growl #121 to fix invalid and therefore blank-looking email messages from MailMe. May also improve transit reliability. Fixes Growl #121.
authorPeter Hosey <hg@boredzo.org>
Mon May 31 09:52:38 2010 -0700 (2010-05-31)
changeset 462540ea1dbbdbc5
parent 4624 c2dd2f31afdb
child 4626 729689fd7751
Upgraded simple-mailer to revision [1f3f19a25320], integrating a patch from “pinchies” in Growl #121 to fix invalid and therefore blank-looking email messages from MailMe. May also improve transit reliability. Fixes Growl #121.
external_dependencies/simple-mailer.py
     1.1 --- a/external_dependencies/simple-mailer.py	Mon May 24 18:49:22 2010 -0700
     1.2 +++ b/external_dependencies/simple-mailer.py	Mon May 31 09:52:38 2010 -0700
     1.3 @@ -1,5 +1,8 @@
     1.4  #!/usr/bin/env python
     1.5  
     1.6 +# simple-mailer by Peter Hosey
     1.7 +# https://bitbucket.org/boredzo/simple-mailer
     1.8 +
     1.9  # Usage: simple-mailer [--[no-]tls] username[:password]@server[:port] from to subject
    1.10  
    1.11  import optparse
    1.12 @@ -57,6 +60,7 @@
    1.13  msg_lines.append('To: ' + to_addr + '\r\n')
    1.14  msg_lines.append('Subject: ' + subject + '\r\n')
    1.15  msg_lines.append('User-Agent: ' + ' '.join(user_agent_product_tokens) + '\r\n')
    1.16 +msg_lines.append('\r\n')
    1.17  msg_lines += (line.rstrip('\r\n') + '\r\n' for line in sys.stdin)
    1.18  smtp.sendmail(from_addr, [to_addr], ''.join(msg_lines))
    1.19  smtp.quit()