Hallo Laura,

On Mon, 19 Jun 2006 23:40:09 -0700GMT (20-6-2006, 8:40 , where I
live), you wrote:

A> I am sort  lost at what you're saying here. 
A> I've spent a bit of time looking at this and am not sure what to 
A> do. 

Okay. Let's keep it simple.
You cannot put info from the message body in the address book,
it's only possible to place info from the headers in the AB.

So what you need to do is to create a message with the correct info in
a header and have that message triggering a filter that places the
info in the AB.
This message can either be a message addressed to yourself with the
from info of your new contact or a message addressed to your new
contact.
As your filter sent an automatic reply to your new contact it's easy
to create an outgoing filter that is triggered by your automatic reply
and have that filter add the recipient of your automatic reply to your
AB.

I suppose you're still with me now.

So basically you need two filters.
The first filter is an adaption of your original filter.
What you need it to do is to move the incoming message to
hncnewsletter folder, to park it and to reply to it.
When you select the reply action and press the 'edit' button, you can
edit the template it uses.
We'll get back to that template later.

The second filter you need, is an outgoing filter. It should be
triggered by your automatic reply, but as you can define that reply
yourself, it should be easy to get a correct condition.
The only action you need is that it adds the addressee to your AB.

Now I'll address your questions.

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.
A> how on earth do I put something in a header once I've received it
A> and it is being processed?

You cannot put things in the header of an already received message.
That's why you need to put the stuff you want in the headers of your
automatic reply.

RO>> However, your filter sends an automatic reply and that automatic
RO>> reply is template driven.
A> How do I see the template?

Select the 'automatic reply' action, press the 'edit' button and
you're in the template it uses.


RO>> With a template and regular expressions 
A> Where do i put the regular expressions

Anywhere in the template.

RO>> you can extract info from the
RO>> message body into the headers (or body) of your reply.
A> I don't understand the above at all.

When you know the format of a given message, it's possible to extract
any given part of said message with a properly configured regular
expression.

RO>> %SetPattRegExp='(?is)(.*?)First\sName:\s(.*?)/nLast\sName:\s(.*?)\n'%-
RO>> %RegExpBlindMatch='%Text'%-
RO>> %SetHeader('To','"%SubPatt=_2_ %SubPatt=_3_" <%OFromAddr>')%-

Just put the stuff above somewhere in the template of your automatic
reply. No need to understand it right now.

RO>> I didn't test any of this.

This still stands. ;-)

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

A> (how would I even execute another filter, I'm processing my 
A> incoming email at this point. I kinda see what you're saying here 
A> but is it possible to see an example of code like this. I've 
A> never used outgoing filters, so this is very new.

Executing your outgoing filter is very easy. TB compares it
automatically against all messages it sends and when it matches, the
outgoing filter is executed after the matching message has ben sent.

Feel free to keep on asking.

-- 
Groetjes, Roelof

"Being right too soon is socially unacceptable." -- Heinlein

The Bat! 3.80.06
Windows XP 5.1 Build 2600 Service Pack 2
1 pop3 account, server on LAN
OTFE enabled
P4 3GHz
2 GB RAM

Attachment: pgpwcjVmV8Li9.pgp
Description: PGP signature

________________________________________________
Current version is 3.80.06 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to