On Fri, 9 Oct 2015, AK wrote:
On 20/09/15 03:07, Dave Funk wrote:
Notes:
1) Due to SA pre-processing collapsing body into one long line, cannot
match on '^' repeatedly, need to look for '\n' as line break indicator.
Find start of a line and then following repeats of ".\n"
Dave,
I've been creating my own regular expressions (*with Regex Buddy despite some
nay sayers here*) and they are working well. However, there are a few that
seem to not hit on my test messages. In order to troubleshoot further, I
need to see the message the way SpamAssassin see's it; is there a tool that
will let me convert my saved email (*I view the email source in Thunderbird
and save to files for testing*) into the rawbody format so I can test my
regex?
I've found the following useful in my test bench environment:
body __ALL_BODY /.*/
tflags __ALL_BODY multiple
rawbody __ALL_RAWBODY /.*/
tflags __ALL_RAWBODY multiple
uri __ALL_URI /.+/
tflags __ALL_URI multiple
etc.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Watch... Wallet... Gun... Knee... -- Denny Crane
-----------------------------------------------------------------------