diff --git a/management/mail_log.py b/management/mail_log.py index 8b68f956..d7bc8408 100755 --- a/management/mail_log.py +++ b/management/mail_log.py @@ -42,8 +42,9 @@ def scan_mail_log(logger, env): for date, sender, message in collector["rejected-mail"][k]: logger.print_line(k + "\t" + str(date) + "\t" + sender + "\t" + message) - logger.add_heading("Other") - logger.print_block("Unrecognized services in the log: " + ", ".join(collector["other-services"])) + if len(collector["other-services"]) > 0: + logger.add_heading("Other") + logger.print_block("Unrecognized services in the log: " + ", ".join(collector["other-services"])) def scan_mail_log_line(line, collector): m = re.match(r"(\S+ \d+ \d+:\d+:\d+) (\S+) (\S+?)(\[\d+\])?: (.*)", line) diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index 431465d2..8f0a0217 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -23,9 +23,9 @@ -