# Embedded Scripts
#
#  This catches HTML-based email with embedded Scripting code,
#  Javascript or others.
#
:0 BH
* LEANTAG ?? no
* !^Subject: .*\(fwd\)
* !--.*forwarded message --
* !^forwarded message:
* !^-----BEGIN PGP SIGNED MESSAGE-----
* -1000^0
*  1100^1    ()<SCRIPT language=
*  1100^1    ^function TripodShowPopup\(\)$
*   500^1     function validate\(string\)
*   500^1     if \(!string\) return
*   500^1     if \(Chars.indexOf\(string.charAt\(i\)\)
*   500^1     function check_empty
*   500^1     function validate_form\(\)
*   500^1     return \(text\.length
*    10^1.5   (^|[^0-9a-z])function([^0-9a-z]|$)
*    10^1.5   (^|[^0-9a-z])return([^0-9a-z]|$)
*    10^1.5   (^|[^0-9a-z{])var([^0-9a-z]|$)
{
PATSCORE=$=

:0 f
| ${FORMAIL} -A"X-SBRule: Pattern Match (Embedded Script) (Score: ${PATSCORE})"

:0
{ BLOCKTAG=yes }

:0
* PATTERNMATCHING ?? NOTIFY
{ BLOCKTHIS=yes }
}
