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
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
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
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
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
[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
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
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)
>
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@
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
10 matches
Mail list logo