Hello Kevin,

On  Tue, 21 Nov 2000  at  14:25:00 GMT GMT (which was 6:25 AM
where I live) witnesses say Kevin Tea typed:

> For whatever reason, the supplied email address is not highlighted blue
> as an active hyperlink. Is there anyway that I can program The Bat! To 
> pick up this email string and send a template reply automatically?

You'll need to use a regular expression in your reply template.
Just include something like:
%To=''%To='regexp'

To find the regexp that we need, can you give us the exact format of
the line where the address is hidden? As this is a form, do you have a
very specific layout that *all* messages follow? (Eg, the number of
lines before the e-mail address is always 10) If you do, it would make
finding the regexp much easier.

I have a few variations, none of them work exactly right.  Could
someone please help me out?

The following regexp gives close to the right result on the message
when used in replying to Kevin's message:

  %SETPATTREGEXP="(?is)(.*?)\s(\S*?@.*?)(\s|\n)"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="2"

This regexp produces:
  <mailto:[EMAIL PROTECTED]>


So I changed it to:

  
%SETPATTREGEXP="(?is)(.*?)\s(.*?mailto:)*?(\S*?@[.\w]*?)(\s|\n)"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="3"

This returns the last address in the text


The other variation I have:

  
%SETPATTREGEXP="(?is)(.*?)\s(.*?mailto:)*?(\S*?@\S*?)(\s|\n)"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="3"

Gives:
  [EMAIL PROTECTED]>
                             ^
Except for the trailing > this is very close to what we want.  Any
ideas how to remove this last problem?



-- 
Thanks for writing,
 Januk Aggarwal
 See header for e-mail address

 Using The Bat! 1.48 Beta/7
 under Windows 98 4.10 Build 2222  A 

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : [email protected]


Reply via email to