]> git.donarmstrong.com Git - bin.git/blob - find_bts_mail
a4cb1a53ab6992a3523f035dc5e353c8b3dfb788
[bin.git] / find_bts_mail
1 #!/bin/sh
2
3 DAYS="${2:-4}"
4
5 ## this script searches a bunch of paths to find logfiles, and then
6 ## greps through the logfiles for matches
7 (find /srv/bugs.debian.org/mail/ -iname '.logfile*' -ctime -$DAYS -print0;
8  find /var/log/exim4/ -iname 'mainlog*' -ctime -$DAYS -print0;
9  find /srv/bugs.debian.org/logs -iname 'spamscan*' -ctime -$DAYS -print0;
10  find /srv/bugs.debian.org/logs -iname 'process*' -ctime -$DAYS -print0;
11  )|xargs -0 grep -C 5 "$1"