Commit e55e04aa authored by Vincent Le gallic's avatar Vincent Le gallic

[arpwatch] Ça l'air de marcher, on droppe vraiment les mails inutiles maintenant.

parent d1ab00de
......@@ -114,9 +114,7 @@ def report(texte, fallback=False):
textes.append(u'\n-- \\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"", recipients, subject, out,
more_headers = {
'X-Mailer': __file__,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment