summaryrefslogtreecommitdiff
path: root/rystamps.py
diff options
context:
space:
mode:
Diffstat (limited to 'rystamps.py')
-rwxr-xr-xrystamps.py2
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,