procmail
[Top] [All Lists]

Re: How to filter aldready delivered email

2004-12-14 17:50:11
I have a related question. I want to update my spam filter using a local folder
that I move spam into.  I am currently doing this with a crontab but it seems to
me this is better done by a non-delivery recipe. Is this correct?

I am not quite sure how to write the recipe. can I just invoke the script with
something like?

:0:bad [flags]
 * ? sh bad_mail

where bad_mail is a script that does something like

   #!/bin/sh
   spamfilter [options] ${MAILDIR}/bad
   rm ${MAILDIR}/bad
   touch ${MAILDIR}/bad
   exit 0

Can I just code the shell command in the .procmailrc file?

Thanks for any thoughts?

_____
Douglas Denault
http://www.safeport.com
doug(_at_)safeport(_dot_)com
Voice: 301-469-8766
  Fax: 301-469-0601

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail