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
help but here is a snippet from my spam
script which deletes all spam messages over three days old. We run it
every night.
SPAM_PATH="$DOMAIN_PATH/.SPAM"
if [ -d $SPAM_PATH/new ]; then
OLDSPAMNEW=`find $SPAM_PATH/new -type f -ctime +3 -exec rm {} \;`
OLDSPAMCUR=`find $SPA
[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)
>
@spamassassin.apache.org
Subject: spam script
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. This is what i've tried, but the rm command doesn't
seem to like working
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
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. This is what i've tried, but the rm command doesn't
seem to like working with files within the /cur directory...
find /home/vpopmail
11 matches
Mail list logo