Module: check_mk
Branch: master
Commit: d6317846e90f49ea5bc29c84dcc50cd13d106187
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6317846e90f49…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jul 18 11:25:40 2016 +0200
fixed obvious bug
---
doc/treasures/active_checks/check_mail | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/treasures/active_checks/check_mail
b/doc/treasures/active_checks/check_mail
index d88ae28..f4e96c1 100755
--- a/doc/treasures/active_checks/check_mail
+++ b/doc/treasures/active_checks/check_mail
@@ -308,13 +308,13 @@ def forward_to_ec(mails):
disposition = str(part.get('Content-Disposition'))
if content_type == 'text/plain' and 'attachment' not in
disposition:
payload = part.get_payload()
- if encoding == "base64"
+ if encoding == "base64":
payload = base64.b64decode(payload)
log_line += '|' + payload[:body_limit]
break
else:
payload = msg.get_payload()
- if encoding == "base64"
+ if encoding == "base64":
payload = base64.b64decode(payload)
log_line += '|' + payload[:body_limit]