From e55e04aa13fcc779c54de2c1bb9977c4c6efe65a Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sun, 10 Nov 2013 16:40:17 +0100 Subject: [PATCH] =?UTF-8?q?[arpwatch]=20=C3=87a=20l'air=20de=20marcher,=20?= =?UTF-8?q?on=20droppe=20vraiment=20les=20mails=20inutiles=20maintenant.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- surveillance/arpwatch/report.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/surveillance/arpwatch/report.py b/surveillance/arpwatch/report.py index 79388041..e916c366 100755 --- a/surveillance/arpwatch/report.py +++ b/surveillance/arpwatch/report.py @@ -114,9 +114,7 @@ def report(texte, fallback=False): textes.append(u'\n-- \narpwatch_sendmail.py\n') out = ''.join(textes) - if recipients: - if drop_report(subject, ip): - subject += u"(should be dropped)" + if recipients and not drop_report(subject, ip): sendmail(u"arpwatch@crans.org", recipients, subject, out, more_headers = { 'X-Mailer': __file__,