Liu Shuai wrote:
> 
> Hi all,
> 
> I want to set up a system wide cron job that deletes old (2 weeks maybe)
> tagged spam from each user's
> spam folder, but I am not sure how.
> 
> Does anybody here has a script that does similar job that I can use as a
> reference? If not, can some one
> give me some direction? I assume I need a parser that will parse each user's
> spam folder so that I can
> retrieve the date of each message?
> 
> Any suggestion will be appreciated.

I've got a set of procmail routines for this, but they're triggered
based on a counter -- I think less processing when testing for archiving
triggering.

Some explaination is at:

http://www.wecs.com/spam.htm#epilogue

And the routines can be downloaded at:

ftp://ftp.wecs.com/procmail/archcron.zip

If they are not what you need, they may be a starting point.

Probably don't want to get to far off topic on this -- that is, "to
procmail or not to procmail" may raise more questions, than answers. 
But according to a little googling, exim, cpanel, and procmail, are
uncontraversially do-able:

http://info.ccone.at/INFO/Mail-Archives/procmail/Mar-2003/msg00002.html

Bryan

> 
> LS
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

-- 
The trick is to fall and miss the ground. This happens only when someone
falls and becomes so preoccupied with something else that they forget
that they are falling, and therefore are no longer doing it. Flying is
just a permanent state of falling, minus the hitting the ground part. -
Douglas Adams

http://www.wecs.com/content.htm

This signature file is generated by Pick-a-Tag !
Written by Jeroen van Vaarsel
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=pick-a-tag



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to