Module: check_mk
Branch: master
Commit: 788b2a0c5648220e52a31e51435813d888584a20
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=788b2a0c564822…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Sep 21 16:11:54 2016 +0200
3813 FIX check_mail: fixed missing base64 decoding on multipart mails
---
.werks/3813 | 9 +++++++++
ChangeLog | 1 +
doc/treasures/active_checks/check_mail | 1 +
3 files changed, 11 insertions(+)
diff --git a/.werks/3813 b/.werks/3813
new file mode 100644
index 0000000..0cba006
--- /dev/null
+++ b/.werks/3813
@@ -0,0 +1,9 @@
+Title: check_mail: fixed missing base64 decoding on multipart mails
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1474467090
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 3f4d4f6..8b98b42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -402,6 +402,7 @@
* 3808 FIX: df.include: fixed incorrect levels calculations on very small
filesystems...
* 3810 FIX: windows agent: no longer truncates plugin output, no longer freezes when
plugin produces too much output...
* 3812 FIX: winperf_phydisk: reintroduced read and write queue length performance
data...
+ * 3813 FIX: check_mail: fixed missing base64 decoding on multipart mails
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/doc/treasures/active_checks/check_mail
b/doc/treasures/active_checks/check_mail
index f4e96c1..8b2fe79 100755
--- a/doc/treasures/active_checks/check_mail
+++ b/doc/treasures/active_checks/check_mail
@@ -306,6 +306,7 @@ def forward_to_ec(mails):
for part in msg.walk():
content_type = part.get_content_type()
disposition = str(part.get('Content-Disposition'))
+ encoding = part.get('Content-Transfer-Encoding', 'None')
if content_type == 'text/plain' and 'attachment' not in
disposition:
payload = part.get_payload()
if encoding == "base64":