[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')
|
textes.append(u'\n-- \narpwatch_sendmail.py\n')
|
||||||
|
|
||||||
out = ''.join(textes)
|
out = ''.join(textes)
|
||||||
if recipients:
|
if recipients and not drop_report(subject, ip):
|
||||||
if drop_report(subject, ip):
|
|
||||||
subject += u"(should be dropped)"
|
|
||||||
sendmail(u"arpwatch@crans.org", recipients, subject, out,
|
sendmail(u"arpwatch@crans.org", recipients, subject, out,
|
||||||
more_headers = {
|
more_headers = {
|
||||||
'X-Mailer': __file__,
|
'X-Mailer': __file__,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue