summaryrefslogtreecommitdiff
path: root/sqmail-4.3.07/src/deferrals.sh
blob: 84b19f666e92750fe820622d8437a2fd3c1ea7e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
awk '
  /^d z/ {
    reason = $11
    temp[reason] += 1
    xdelay[reason] += $5 - $4
  }
  END {
    for (reason in temp) {
      str = sprintf("%.2f",xdelay[reason])
      print temp[reason],str,reason
    }
  }
'