phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-users] Auto empty email Trash folder


From: Brian Johnson
Subject: [Phpgroupware-users] Auto empty email Trash folder
Date: Wed, 30 Oct 2002 16:37:28 +0000

For those of you that care ...

This cron job:

00 00 * * * root locate Trash | grep mail > /tmp/mail.txt; /root/trash.pl

combined with this script:

#!/usr/bin/perl
open MAIL, "/tmp/mail.txt";
foreach (<MAIL>) {
                chomp;
               system ( "tail $_ > $_");
}
close MAIL;

Works for me - it empties every user's Trash folder every day at midnight





reply via email to

[Prev in Thread] Current Thread [Next in Thread]