"body" unfortunately doesn't come out as a single string for the whole body. It is broken into sections at seemingly random and indeterminate places. This makes an attempt to match across multiple lines fairly improbable.
Loren ----- Original Message ----- From: Rosenbaum, Larry M. To: users@spamassassin.apache.org Sent: Thursday, December 14, 2006 7:30 AM Subject: 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?