delete mail with procmail
Posted by: ellinj
Posted on: 2003-02-25 05:23:00
Anyone have an example of how to delete or better yet delete an email using procmail. I have a particular email that I keep getting from a spammer (at least five times a day) Rather then have spamassasin remove it I would like to just plain delete or bounce it so I never see it.
I have tried this but it doesn't seem to work.
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
:0
* ^(From.*yahoo.com
{
EXITCODE=77
:0
/dev/null
}
INCLUDERC=$PMDIR/spam.rc
:
$HOME/Maildir/