X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=find_bts_mail;h=e1d4802f106638fba3b4b7756b5f511bd578d065;hb=188320b50bded45d875eb9713c5d8019e419153b;hp=a4cb1a53ab6992a3523f035dc5e353c8b3dfb788;hpb=c415a1ba1aeca58b537ccd13176ce6968f834091;p=bin.git diff --git a/find_bts_mail b/find_bts_mail old mode 100644 new mode 100755 index a4cb1a5..e1d4802 --- a/find_bts_mail +++ b/find_bts_mail @@ -4,8 +4,8 @@ DAYS="${2:-4}" ## this script searches a bunch of paths to find logfiles, and then ## greps through the logfiles for matches -(find /srv/bugs.debian.org/mail/ -iname '.logfile*' -ctime -$DAYS -print0; +(sudo -u debbugs find /srv/bugs.debian.org/mail/ -iname '.logfile*' -ctime -$DAYS -print0; find /var/log/exim4/ -iname 'mainlog*' -ctime -$DAYS -print0; - find /srv/bugs.debian.org/logs -iname 'spamscan*' -ctime -$DAYS -print0; - find /srv/bugs.debian.org/logs -iname 'process*' -ctime -$DAYS -print0; + sudo -u debbugs find /srv/bugs.debian.org/log -iname 'spamscan*' -ctime -$DAYS -print0; + sudo -u debbugs find /srv/bugs.debian.org/log -iname 'process*' -ctime -$DAYS -print0; )|xargs -0 grep -C 5 "$1"