Skip to content

Commit

Permalink
Looking at cron mails once every few years is a good idea
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Oct 24, 2017
1 parent 211366f commit 6a359a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/mailman/files/mm_discard_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
recmp = re.compile(' ([\w-]+) post from (.*) discarded: SpamAssassin score was ([[\d\.]+) ')

out = {}
for f in ( open('/var/log/mailman/vette.1'), open('/var/log/mailman/vette') ):
for f in (open('/var/log/mailman/vette.1'), open('/var/log/mailman/vette')):
for line in f:
if not line.startswith(md):
continue
Expand All @@ -26,9 +26,9 @@
if mlist not in out:
out[mlist] = {}
if sender not in out[mlist]:
out[mlist][sender] = [ score ]
out[mlist][sender] = [score]
else:
out[mlist][sender].append( [ score ] )
out[mlist][sender].append(score)

if out:
body = 'Auto-discard report\n'
Expand Down

0 comments on commit 6a359a0

Please sign in to comment.