File: examined.sh

package info (click to toggle)
mailfilter 0.8.6-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,280 kB
  • ctags: 2,501
  • sloc: cpp: 2,452; sh: 1,393; ansic: 1,259; lex: 570; yacc: 468; makefile: 167; perl: 72
file content (11 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#####
# (C) Kay Schulz
# Licensed under the same terms as Mailfilter, GPL v2 or later.
# Use at your own risk!
# Calculates the amount of emails examined by mailfilter
# This only makes sense if you examine mails only once.
# If you do not download and then delete the emails on the
# server, this script will give you the wrong number.
#####
zgrep Examining log/mailfilter.log* | awk '{x=x+$3}; END {print x}'