diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-05-21 15:41:34 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-05-21 15:42:09 +0200 |
commit | 51881a01df4d5023aabfa2b8acca43b799d2ae3c (patch) | |
tree | cd429521140b0a6699819031707dc9a155a54f73 /rystamps.py | |
parent | 3de1a8cb0582fcae4fdc1f38a92820284cd0111e (diff) | |
download | rybackup-51881a01df4d5023aabfa2b8acca43b799d2ae3c.tar.xz |
Diffstat (limited to 'rystamps.py')
-rwxr-xr-x | rystamps.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rystamps.py b/rystamps.py index 16b381e..0655328 100755 --- a/rystamps.py +++ b/rystamps.py @@ -15,6 +15,7 @@ from string import join from smtplib import SMTP from socket import getfqdn from os.path import getmtime +from email.Utils import formatdate from datetime import timedelta, datetime @@ -45,6 +46,7 @@ relay = "mail.example.com" # Sending out alerts def mail(FROM, TO, SUBJECT, BODY): MSG = join(( + "Date: %s" % formatdate(localtime=True), "From: %s" % FROM, "To: %s" % TO, "Subject: %s" % SUBJECT, |