Commits

Peter Hosey  committed 40ea1db

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.

  • Participants
  • Parent commits c2dd2f3
  • Branches default

Comments (0)

Files changed (1)

File external_dependencies/simple-mailer.py

 #!/usr/bin/env python
 
+# simple-mailer by Peter Hosey
+# https://bitbucket.org/boredzo/simple-mailer
+
 # Usage: simple-mailer [--[no-]tls] username[:password]@server[:port] from to subject
 
 import optparse
 msg_lines.append('To: ' + to_addr + '\r\n')
 msg_lines.append('Subject: ' + subject + '\r\n')
 msg_lines.append('User-Agent: ' + ' '.join(user_agent_product_tokens) + '\r\n')
+msg_lines.append('\r\n')
 msg_lines += (line.rstrip('\r\n') + '\r\n' for line in sys.stdin)
 smtp.sendmail(from_addr, [to_addr], ''.join(msg_lines))
 smtp.quit()