On Mon, Mar 10, 2003 at 09:04:34AM -0500, Martinez, Michael - CSREES/ISTM wrote:
> I've got the darndest problem. It appears that random emails occasionally
> disappear for an unknown reason, from /var/spool/qmailscan/archives/new. The

You've found a bug! I'm surprised no-one else has seen it before (no-one can
be using the archive feature...)

"qmail-queue-scanner.pl -z" cleans out old files under
/var/spool/qmailscan/. It excludes some areas (such as quarantine), but for
some reason I completely forgot to include */archives/* in the list of files
to ignore.

Change the line:

my ($OLDFILES)=`$find_binary $scandir -type f \! -name '*.log' \! -name
'*.txt' \! -name '*.db' \! -path '*/quarantine/*' -prune  -mmin +2160 -exec
$rm_binary -f {} \\; 2>/dev/null`;


to

my ($OLDFILES)=`$find_binary $scandir -type f \! -name '*.log' \! -name
'*.txt' \! -name '*.db' \! -path '*/quarantine/*' \! -path '*/archives/*' 
-prune  -mmin +2160 -exec $rm_binary -f {} \\; 2>/dev/null`;


(remove the word-wrapping of course).

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to