Re: spam script

2006-07-12 Thread John D. Hardin
On Wed, 12 Jul 2006, Nicholas Payne-Roberts wrote: > I am now trying to figure out how to use find in a similar way to > tidy up those Junk E-mail directories by deleting them after they > have been used to learn from. Keep 'em. It simplifies retraining from scratch should you need to do so and u

RE: spam script

2006-07-12 Thread Bowie Bailey
Nicholas Payne-Roberts wrote: > > That works perfectly!! :D I had never thought of using -path and -f find /home/vpopmail/domains -path "*/.Junk E-mail/cur/*" -type f -exec rm {} \; Actually, the "-type f" is probably unnecessary since there should not be any directories or special files in the

Re: spam script

2006-07-12 Thread Nicholas Payne-Roberts
That works perfectly!! :D I had never thought of using -path and -f Thank you very much for your kind help :) Nick Bowie Bailey wrote: Nicholas Payne-Roberts wrote: I think my problem is with the usage of the rm command. Even when i execute it on its own (not within find) it fails to delet

RE: spam script

2006-07-12 Thread Bowie Bailey
Nicholas Payne-Roberts wrote: > I think my problem is with the usage of the rm command. Even when i > execute it on its own (not within find) it fails to delete the file: > > rm -f /home/vpopmail/domains/domain.com/nick/Maildir/.Junk > E-mail/cur/* > > Executes with no error and fails to delete

Re: spam script

2006-07-12 Thread Nicholas Payne-Roberts
ah right, excellent, i shall have a play with this and tailor it to my setup, thanks Dave. DAve wrote: Nicholas Payne-Roberts wrote: I think my problem is with the usage of the rm command. Even when i execute it on its own (not within find) it fails to delete the file: rm -f /home/vpopmail/d

Re: spam script

2006-07-12 Thread Nicholas Payne-Roberts
[mailto:[EMAIL PROTECTED] Sent: Wed 12-Jul-06 15:12 To: Sietse van Zanen Subject: Re: spam script find /home/vpopmail/domains -name ".Junk E-mail" -exec rm -f {}/cur/* \; It just seems to execute without any errors but when you look in any of the cur directories, the files are still t

Re: spam script

2006-07-12 Thread Nicholas Payne-Roberts
E-mail" -exec rm -f {}/cur/\* \; Maybe that helps. -Sietse From: Nicholas Payne-Roberts [mailto:[EMAIL PROTECTED] Sent: Wed 12-Jul-06 15:12 To: Sietse van Zanen Subject: Re: spam script find /home/vpopmail/domains -name ".Junk E-mail" -exec

RE: spam script

2006-07-12 Thread Sietse van Zanen
Sent: Wed 12-Jul-06 14:55 To: users@spamassassin.apache.org Subject: Re: spam script That deleted all of the cur directory within the .Junk E-mail directory. Sietse van Zanen wrote: > Loose the * and do rm -rf (recursively deletes the directory) >

Re: spam script

2006-07-12 Thread Nicholas Payne-Roberts
That deleted all of the cur directory within the .Junk E-mail directory. Sietse van Zanen wrote: Loose the * and do rm -rf (recursively deletes the directory) -Sietse From: Nicholas Payne-Roberts [mailto:[EMAIL PROTECTED] Sent: Wed 12-Jul-06 14:24 To: users@

RE: spam script

2006-07-12 Thread Sietse van Zanen
Loose the * and do rm -rf (recursively deletes the directory) -Sietse From: Nicholas Payne-Roberts [mailto:[EMAIL PROTECTED] Sent: Wed 12-Jul-06 14:24 To: users@spamassassin.apache.org Subject: spam script I am now trying to figure out how to use find in a si