[ale] problems with procmail
Jason Day
jasonday at worldnet.att.net
Tue Jan 21 10:15:11 EST 2003
On Mon, Jan 20, 2003 at 10:47:18PM -0600, ChangingLINKS.com wrote:
> I have read several sites on procmairc and cannot seem to get it right.
> I would like procmail to look in the to, from, cc, and body (everywhere for
> "ChangingLINKS." If if finds that string ANYWHERE in the field, keep the
> message. If not /dev/null it.
> Below you can see that I am also trying to keep messages to eemail@, but
> delete messages to email@ and keep messages to ale at ale.org.
> Can someone help me straighten this out?
>
>
> :0
> * !(From|To|Cc).*ChangingLINKS.*
> * !(To|Cc). ale at ale.org
> * !(To|Cc). eemail at ChangingLINKS.com
> * ^(To|Cc).*email at ChangingLINKS.com
> * ^(From|To|Cc). <email at ChangingLINKS.com>
> /dev/null
First of all, I haven't tested this, so it may or may not work. It also
may or may not send *all* of your email to the bit bucket. I *highly*
recommend you use a separate mailbox, instead of /dev/null, until you
know it works.
--- cut here ---
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mail # you'd better make sure it exists
LOGFILE=$MAILDIR/.fromlog # recommended
:0
* !^TOChangingLINKS
{
:0 B
* !ChangingLINKS
# Store the message in $HOME/Mail/suspectmail
# Change to /dev/null when you are sure it works.
suspectmail
}
--- cut here ---
This recipe file will (I think) store any email that does not contain
the string "ChangingLINKS" in a mailbox called "suspectmail" in your
$HOME/Mail directory (make sure to create the ~/Mail directory first).
Hope this helps,
Jason
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list