procmail
[Top] [All Lists]

Re: How to use Procmail to remove messages from server after x number of days

2011-03-01 15:43:29
On 1-Mar-2011, at 14:40, LuKreme wrote:

-exec rm {} \; is simply a long way of spawning a shell and executing rm 
for old, OLD versions of find that don't have -delete.


Which will break if too many files are found. (where "too many" means the 
length of the string of filenames exceeds the buffer length allocated for 
commands on the system).

I thought they fixed that in find? But regardless, I've deleted a lot of mail 
this way and not had a problem.

OK, on my mailserver I am actaully using the -exec rm {} \;

On the server that holds the backups, I am using -delete. 

So, YMMV. Test first. Measure twice, cut once. Yadda Yadda.

-- 
I WILL NOT EXPOSE THE IGNORANCE OF THE FACULTY Bart chalkboard Ep. 8F15


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>