[arpwatch] Ça l'air de marcher, on droppe vraiment les mails inutiles maintenant.
This commit is contained in:
parent
d1ab00debc
commit
e55e04aa13
1 changed files with 1 additions and 3 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue