-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher X. Candreva writes:
> After upgrading to 3.1, I am receiving a warning about a useless /g regex 
> modifier in the de-token rules as generated by 
> http://www.wot.no-ip.com/cgi-bin/detoken.pl
> 
> (These are custom-generated rules to look for listwash tokens for your 
> domain).
> 
> The warning is:
> [19609] warn: Useless (?g) - use /g modifier in regex; marked by <-- HERE in 
> m/(?sg <-- HERE )<\/body>.{0,100}westnet.{1,3}com/ at 
> /usr/local/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/Conf/Parser.pm line 
> 909.
> 
> It seems to be from this rule:
> #domain outside body
> rawbody W_UNENC_3R              /<\/body>.{0,100}westnet.{1,3}com/sg
> describe W_UNENC_3R             Listwash token - Domain name after body
> score W_UNENC_3R                3.0
> 
> I'm not sure looking at this if this is a perl warning about the code 
> itself, or a warning from SA after it parses this, and if the uselessness is 
> inherent in the regex, or something introduced by the new version of SA.

well, I'm pretty sure the use of /g there is not correct, in
which case the warning is a good thing to have.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFDMj1WMJF5cimLx9ARAvs5AJ93jjpVBzLrP9k37P2f1w/9JaoO6wCfV1ye
n7AfzVF/hk0W8EIt7kxLJb4=
=apnB
-----END PGP SIGNATURE-----

Reply via email to