Hello Roelof,
I am sort lost at what you're saying here.
I've spent a bit of time looking at this and am not sure what to
do.
Thanks for your guidance, I am sorry if I am asking newbie
questions below:
Laura
Sunday, June 18, 2006, 2:01:34 PM, you wrote:
RO> Hallo Laura,
RO> On Wed, 14 Jun 2006 21:38:16 -0700GMT (15-6-2006, 6:38 , where I
RO> live), you wrote:
L>> I'm wondering if anyone knows how to extract information
L>> from an email, and then put that info in the bat address
L>> book. For instance,
RO> It can't be done the way you describe it.
RO> TB won't add stuff from the message body to the address book, only
RO> info from address headers.
how on earth do I put something in a header once I've received it
and it is being processed?
RO> However, your filter sends an automatic reply and that automatic
RO> reply is template driven.
How do I see the template?
RO> With a template and regular expressions
Where do i put the regular expressions
RO> you can extract info from the
RO> message body into the headers (or body) of your reply.
I don't understand the above at all.
RO>
%SetPattRegExp='(?is)(.*?)From:\s(.*?)\n(.*?)First\sName:\s(.*?)/nLast\sName:\s(.*?)\n'%-
RO> %RegExpBlindMatch='%Text'%-
RO> %SetHeader('To','"%SubPatt=_4_ %SubPatt=_5_" <%SubPatt=_2_>')%-
Not sure what the above 3 lines do, except it seems to be looking
for the user first name and last name?
RO> This regexp should give you a To: header with the info extracted from
RO> the message. Note that I understood your message as the
RO> From/Subject/Sent was part of your message body. In case they're
RO> actual headers then you should use:
the header as I know it only has the email address the person
gives on the form on the webpage they are entering their address
on. The first name and last name are fields on the form.
RO> %SetPattRegExp='(?is)(.*?)First\sName:\s(.*?)/nLast\sName:\s(.*?)\n'%-
RO> %RegExpBlindMatch='%Text'%-
RO> %SetHeader('To','"%SubPatt=_2_ %SubPatt=_3_" <%OFromAddr>')%-
RO> I didn't test any of this.
RO> Now you've got a message with a header that contains every item that
RO> you need in your AB. So your next filter
(how would I even execute another filter, I'm processing my
incoming email at this point. I kinda see what you're saying here
but is it possible to see an example of code like this. I've
never used outgoing filters, so this is very new.
RO> is an outgoing filter that
RO> triggers on your confirmation messages and you set that filter to add
RO> the contacts to your AB.
L>> Right now I have this filter running:
L>> $$$$ TB! Message Filter $$$$
L>> AddToAddressBook From groups hncnewsletter
L>> AddToAddressBook From groups hncnewsletter
RO> Why is it that your filter adds the address to your AB twice?
my mistake.
--
Best regards,
alists mailto:[EMAIL PROTECTED]
________________________________________________
Current version is 3.80.06 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html