Like an idiot, I tried on my own and missed about 45 minutes of email w/ a script 
error!  If there were any responses to my original post, could you resend?  
pleeeaaassssee?

TIA

Mike Schrauder

> -----Original Message-----
> From: Mike Schrauder 
> Sent: Wednesday, July 09, 2003 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: [SAtalk] OT postfix Advosys filter.sh change ?
> 
> 
> Sorry I am so clueless w/ bash shell but I am certain there 
> are many in this list that can help me.  
> I would like to add an if condition to the filter.sh to 
> delete the email if it has greater than 15 stars.
> I have the following in my Filter.sh script:
> 
> # Now test to see if there are more than $SPAMDELETE (15) or 
> $SPAMLIMIT (9) stars in the X-Spam-Level header
> # derived from http://advosys.ca/papers/filter-misc/sideline.sh
> if $EGREP -q ""X-Spam-Level: \*{$SPAMDELETE,}" < out.$$
> then
>         # delete it!
>         #WHAT SHOULD I PUT HERE to cleanly yank the email and 
> have it deleted?
> 
> else if $EGREP -q "^X-Spam-Level: \*{$SPAMLIMIT,}" < out.$$
> then
>         # divert to an alternate local email address:
>         $SENDMAIL spamviewer < out.$$
> else
>         $SENDMAIL "$@" < out.$$
> fi
> 
> 
> 
> 
> thanks much!
> Mike Schrauder
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
> 


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to