Hello Blarp,

Historians believe that Tuesday, July 30, 2002 at 9:38 AM was when,
Blarp [B] typed the following:

B> I need help making a special reply template.

Any follow-up should probably move to TBTECH, but I'll take a first
stab here.

B> It then puts the original sender's address into the first line of
B> the message body as:

B> From: "Joe Blow" <[EMAIL PROTECTED]>

I'm assuming there is always a name portion for the following.  If
that is not true, we can work around it, but it means using a more
intimidating looking macro.

For the name, use:    %REGEXPTEXT='(?i-s)\sFrom:\s*\"(.*?)\"'
For the address, use: %REGEXPTEXT='(?i-s)\sFrom:.*?\<(.*?)\>'

So, using those on your message, we get:
=====[Begin Example]=====
Name:    Joe Blow
Address: [EMAIL PROTECTED]
=====[ End  Example]=====

B> I'm sure that TB can do it with a few regex's

Yup.

-- 
Thanks for writing,
 Januk Aggarwal

Reality is merely an illusion, albeit a very persistent one.
  --Albert Einstein (1879-1955)


________________________________________________________
Current Ver: 1.61
FAQ        : http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Bug Reports: https://www.ritlabs.com/bt/

Reply via email to