Module: check_mk
Branch: master
Commit: a29a65c4a12949a308118fa2fb7105f77a7c9e63
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a29a65c4a12949…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 12 16:59:42 2017 +0100
4278 FIX check_mail_loop: Added missing Date header to sent mails
Change-Id: I406a9b9dd31a8486391410f29efe0d82ddb9ec40
---
.werks/4278 | 10 ++++++++++
ChangeLog | 1 +
active_checks/check_mail_loop | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/4278 b/.werks/4278
new file mode 100644
index 0000000..b560f97
--- /dev/null
+++ b/.werks/4278
@@ -0,0 +1,10 @@
+Title: check_mail_loop: Added missing Date header to sent mails
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1484236699
+
+
diff --git a/ChangeLog b/ChangeLog
index 5919c17..b54b158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,7 @@
* 4274 FIX: eltek_outdoor_temp: Fixed non working default levels
* 4275 FIX: ibm_imm_voltage: Fixed not working perfdata processing
* 4010 FIX: netapp_api_qtree_quota: now only includes quotas where disk-limits are
set
+ * 4278 FIX: check_mail_loop: Added missing Date header to sent mails
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can
now be configured via global settings....
diff --git a/active_checks/check_mail_loop b/active_checks/check_mail_loop
index d899d25..e2fb400 100755
--- a/active_checks/check_mail_loop
+++ b/active_checks/check_mail_loop
@@ -328,6 +328,7 @@ def send_mail():
mail['From'] = mail_from
mail['To'] = mail_from
mail['Subject'] = '%s %d %d' % (subject, now, key)
+ mail['Date'] = email.utils.formatdate(localtime=True)
try:
S = smtplib.SMTP(smtp_server, smtp_port)