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