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

LuKreme <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.