On Wednesday, October 01, 2003, Januk Aggarwal wrote...

> Fortunately your spam reports seem to have very non-variable anchors
> for you to use. There are a variety of regexps that you could get to
> work, but these are the ones that are most appealing to my personal
> taste.

JA>>     <[destination email]>
> %_Email='%-
> %RegexpText="(?im-s)^\s*The message WILL BE delivered to:\s*\n\s*(<.*?>)"'%-

[..]

These work great... Now I'll see if I can work out how to ignore the
<> in the email addresses too now.

> The tab delimited could be difficult simply because I don't know how
> you can convince a TB template to insert tab characters.  I haven't
> tried it, but  a quick and dirty way might be to make a one character
> text file containing only a TAB character.  Then in your template have
> a line:
> %_Tab="%Put='<path>\tabfile.txt'"%-

I tried cheating on this one, and copying a tab character from notepad
into the editor, but it replaced it with a space, so I ended up having
to go with this option.

[..]
> %_Email%_Tab%_Spam_Score%_Tab%_Spam_file

> Note this isn't tested, but *should* work. If you'd like me to test
> it a bit more, could you please mail me a sample message (offlist)?

It does work great... in fact, perfectly... I adjusted the last line
to have a %- on it as it resulted in extra line spaces in the file
(might be bad c&p).

Great work... thanks... now can I borrow your brain for a couple of
weeks? ;)

-- 
Jonathan Angliss
([EMAIL PROTECTED])

I used up all my sick days, so I'm calling in dead.
________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to