ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> spamassassin-users
spamassassin-users
BODY rule fails with double-spaced text
by Larry M. Rosenbaum other posts by this author
Dec 14 2006 7:31AM messages near this date
How to get SA ... | Re: BODY rule fails with double-spaced text
The doc for BODY rules says "All HTML tags and line breaks will be
removed before matching".  I was also told on this list that multiple
whitespace was compressed to single space characters.  So if I have text
like this:

 

xyzzy

abcde

 

and the following rules:

 

body    T_LMRTESTB1 /xyzzy abcde/

body    T_LMRTESTB2 /xyzzy\s{1,4}abcde/

 

then both rules will match.  However, if the text is double-spaced like
this:

 

xyzzy

 

abcde

 

then *neither* rule will match, even though I would have expected them
both to still match.  Is this a designed feature or a bug?
Thread:
Larry M. Rosenbaum
Loren Wilton
Theo Van Dinter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved