imip-agent

tools/sendmail.py

1292:8a08870781bb
2017-10-06 Paul Boddie Remove SENT-BY from attributes where the sender matches the user. Simplify get_timestamp, making it use get_time.
     1 #!/usr/bin/env python     2      3 import smtplib     4 import sys     5      6 sender, recipients = sys.argv[1], sys.argv[2:]     7      8 s = smtplib.SMTP("localhost")     9 print s.sendmail(sender, recipients, sys.stdin.read())