procmail
[Top] [All Lists]

Re: Recipe stops processing early

2003-12-29 02:19:59
Thanks, I have given that a try and it works well. I did, however, get an 
unexpected token error from the shell becuase of the quotes (") around 
$SPAMMER. I'm probably going to want to expand this recipe to include a quote 
of the subject line, which I will put into the variable SUB. How can I have a 
quote character echoed by the shell? I tried:

TRAP='echo Subject: \''$SUB'\' was deleted. >>delete.log' 

but that generated an unexpected EOL error. Doesn't \ escape characters?...

Thank you again!

On Monday 29 December 2003 03:06 am, Gary Funck wrote:
Rewriting:

#### ISP spam ####

:0

* ^To:(_dot_)*(_at_)ispdomain[(_dot_)]net
{
  SPAMMER=`formail -rzxTo:`
  TRAP='echo "$SPAMMER" >> spammerlist
echo "`date`: The ISP junk mail list hit again! ($SPAMMER)" >> delete.log'

  :0:

  SPAM
}

(using a couple of David T's tips.)


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>