On 9/20/10 11:33 AM, Steve Freegard wrote:
On 20/09/10 15:28, Bowie Bailey wrote:

You can get rid of the 'backslashitis' by using a different delimiter.

uri  URI_BITLY_BLOCKED  m~^http://bit\.ly/a/warning~i

You still need to escape the period, but since the tilde (~) is now the
delimiter rather than the slash, you don't need to escape all the
slashes.  This is very useful for URI patterns!  Just remember that you
will now need to escape the new delimiter if it appears in the regex.

one more:  if # url_shortener_cache /tmp/DecodeShortURLs.sq3
you should not try to load SQLLite.pm.

ent host [79.98.90.156] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=79.98.90.156; from=<madeirau...@rossatogroup.com> to=<herr...@mcclancy.com> proto=ESMTP helo=<MEDMAVVR> Sep 22 08:38:40 sns amavis[77402]: (!)_DIE: Can't locate DBD/SQLite.pm in @INC (@INC contains: lib /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9) at /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm line 84.

 diff -bBru DecodeShortURLs.pm /tmp
--- DecodeShortURLs.pm    2010-09-22 08:41:55.000000000 -0400
+++ /tmp/DecodeShortURLs.pm    2010-09-20 11:13:21.000000000 -0400
@@ -81,7 +81,7 @@

 use constant HAS_LWP_USERAGENT => eval { require LWP::UserAgent; };
 use constant HAS_FCNTL => eval { require Fcntl; };
-use constant HAS_SQLITE => eval { require DBD::SQLite; } if url_shortener_cache;
+use constant HAS_SQLITE => eval { require DBD::SQLite; };

 sub dbg {
   my $msg = shift;


Thanks for the tip; I did know about using different delimiters - but using / is force of habit ;-)

I'll try and remember to use something different for uri rules.

Cheers,
Steve.



--
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
ISN: 1259*1300
> *| *SECNAP Network Security Corporation

   * Certified SNORT Integrator
   * 2008-9 Hot Company Award Winner, World Executive Alliance
   * Five-Star Partner Program 2009, VARBusiness
   * Best in Email Security,2010: Network Products Guide
   * King of Spam Filters, SC Magazine 2008


______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.secnap.com/products/spammertrap/
______________________________________________________________________  

Reply via email to