Module: check_mk
Branch: master
Commit: b383f685a20c8a798eaa90c0de6b325f43236994
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b383f685a20c8a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 25 08:31:32 2017 +0100
4283 FIX check_mail_loop: Now using "mail to" address in To header
Change-Id: I9a35651e9a38ddd22844546967329af4342946c1
---
.werks/4283 | 10 ++++++++++
ChangeLog | 1 +
active_checks/check_mail_loop | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4283 b/.werks/4283
new file mode 100644
index 0000000..8a18f36
--- /dev/null
+++ b/.werks/4283
@@ -0,0 +1,10 @@
+Title: check_mail_loop: Now using "mail to" address in To header
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1485329415
+
+
diff --git a/ChangeLog b/ChangeLog
index 32534f8..7991e97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -60,6 +60,7 @@
* 4292 FIX: oracle_asm_diskgroup: fixed handling if disk status is DISMOUNTED
* 4012 FIX: Fixed broken windows MSI packages (Installer error 2725)...
* 4014 FIX: Windows Agent / Eventlogs with vista_api: Fixed numerous bugs and memory
leaks...
+ * 4283 FIX: check_mail_loop: Now using "mail to" address in To header
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 e2fb400..5b707ee 100755
--- a/active_checks/check_mail_loop
+++ b/active_checks/check_mail_loop
@@ -326,7 +326,7 @@ def send_mail():
mail = email.mime.text.MIMEText("")
mail['From'] = mail_from
- mail['To'] = mail_from
+ mail['To'] = mail_to
mail['Subject'] = '%s %d %d' % (subject, now, key)
mail['Date'] = email.utils.formatdate(localtime=True)