Hello Roelof, Pardon for the top posting, but I am explaining where I am and providing examples of such. I don't know exactly how to meld this into the questions below. I left them there for the purposes of trying to clarify what you've been telling me here. I hope that will be okay. This is pretty complicated and trying to relay it to you, I want to make sure it is clear.
Thank you so much for your help! Roelof, I have had some success! I have some Issues that are listed below (just before your original reply back to me.) Your note really explained a lot to me of what needs to be done, so I commend you for your clear and expert instructions. Here are my notes and copies of all emails/code I've done so far.: ============================================ here's what the original email from the subscriber looks like in plain text email addressed to: [EMAIL PROTECTED] email subject: OCTOS Newsletter Form Subscription Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 21080 invoked by uid 89); 21 Jun 2006 04:42:09 -0000 Received: from dns.adaptive.net (HELO formmail.strongsecure.com) (205.145.140.10) by jasper.strongsecure.com with SMTP; 21 Jun 2006 04:42:09 -0000 Received: from hoover [205.145.140.21] by formmail.strongsecure.com with ESMTP (SMTPD32-5.04) id AD6656B20342; Wed, 21 Jun 2006 00:39:02 EDT Subject: =?iso-8859-1?Q?OCTOS_Newsletter_Form_Subscription?= Sender: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Date: Wed, 21 Jun 2006 00:39:01 -0400 To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> X-Priority: 3 X-MSMail-Priority: Normal Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 X-USER_IP: 71.254.136.122 X-Mailer: JMail 4.3.0 Free Version by Dimac Content-Type: text/plain; charset="iso-8859-1" Message-Id: <[EMAIL PROTECTED]> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jasper.strongsecure.com X-Spam-Status: No, hits=1.3 required=6.0 tests=MISSING_MIMEOLE, MISSING_OUTLOOK_NAME,TO_ADDRESS_EQ_REAL autolearn=no version=2.63 X-Spam-Level: * fname: llee lname: llee2 submit: Signup for Newsletter email: [EMAIL PROTECTED] ----- end of email-------------------------------------- Newsletter filter - for incoming messages- this will process the above email. if it has the exact subject. $$$$ TB! Message Filter $$$$ beginFilter UID: [F89D860C.01C68B83.526F817F.2AF7C982] Name: newsletter Filter: {\0D\0A\20`2`2`OCTOS\20Newsletter\20Form\20Subscription\0D\0A} Park AddToAddressBook From Reply-To CC BCC groups octosnewsletter Reply template %SetPattRegExp\3D\27(?is)(.*?)fname:\5Cs(.*?)/nlname:\5Cs(.*?)\5Cn\27%-\0D\0A%RegExpBlindMatch\3D\27%Text\27%-\0D\0A%SetHeader(\27To\27,\27\22%SubPatt\3D_2_\20%SubPatt\3D_3_\22\20<%OFromAddr>\27)%-\0D\0A\0D\0AHello\20%OFromFName,\0D\0A\0D\0A%ODateEn,\20%OTimeLongEn,\20signed\20up\20for\20the\20OCTOS\20Newsletter.\0D\0AWelcome\20to\20our\20distribution\20list.\20If\20you\20want\20to\20cancel\20your\0D\0Asubscription,\20please\20reply\20to\20this\20message\20with\20the\20subject\20of\0D\0A\22REMOVE\22.\20Your\20subscription\20info\20is\20as\20follows:\0D\0A\0D\0A%Quotes\0D\0A%Cursor\0D\0A\0D\0A--\20\0D\0ABest\20regards,\0D\0A\20OCTOS\20Board\20Members\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20mailto:%FromAddr\0D\0A IsActive Ignore endFilter ---->(note above: I changed the string first name to fname and I changed the last name to lname. I think I did that properly.) --------------- Here is the auto reply... (I know it is included above, but this is easier to read! %SetPattRegExp='(?is)(.*?)fname:\s(.*?)/nlname:\s(.*?)\n'%- %RegExpBlindMatch='%Text'%- %SetHeader('To','"%SubPatt=_2_ %SubPatt=_3_" <%OFromAddr>')%- Hello %OFromFName, %ODateEn, %OTimeLongEn, signed up for the OCTOS Newsletter. Welcome to our distribution list. If you want to cancel your subscription, please reply to this message with the subject of "REMOVE". Your subscription info is as follows: %Quotes %Cursor -- Best regards, OCTOS Board Members mailto:%FromAddr -------------------------------------------------------- outbound filter $$$$ TB! Message Filter $$$$ beginFilter UID: [5213A49E.01C694F0.12DA8EA8.4D1BED4C] Name: sending\20the\20data\20to\20users Filter: {\0D\0A\20`2`0`OCTOS\20Newsletter\20Form\20Submission\0D\0A} AddToAddressBook From Reply-To TO groups octosnewsletter IsActive Ignore endFilter ----> Note: I wasn't sure which to put in the AddToAddressBook (I think it would be TO only? --------mail user receives from outbound filter Date: Tue, 20 Jun 2006 22:06:49 -0700 From: octos <[EMAIL PROTECTED]> X-Mailer: The Bat! (v3.71.03) Educational Reply-To: octos <[EMAIL PROTECTED]> X-Priority: 3 (Normal) To: " " <[EMAIL PROTECTED]> Subject: Re: OCTOS Newsletter Form Subscription In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello llee, Tuesday, June 20, 2006, 9:39:01 PM, signed up for the OCTOS Newsletter. Welcome to our distribution list. If you want to cancel your subscription, please reply to this message with the subject of "REMOVE". Your subscription info is as follows: > fname: llee > lname: llee2 > submit: Signup for Newsletter > email: [EMAIL PROTECTED] -- Best regards, OCTOS Board Members mailto:[EMAIL PROTECTED] =================================================== -----> the steps above added the [EMAIL PROTECTED] to the address book. but not any of the information associated with it. Issues: The process is generating the reply email! Good! Thanks to you! However, the fname (first name) and lname (last name) fields are not being populated. I had to redo the forms and those are the field names now showing up. I don't see any of the fields in header info? I also need to create a filter to handle if people put REMOVE in the subject line. I will be adding address info at some point. street, city, state, zip code, octosmember ID, empty address line's in case they are from another country. Will this complicate this process extensively? Thank you very much for your assistance! I'm learning so much here! Laura Lee ---------the bottom is for information purposes only. Tuesday, June 20, 2006, 4:40:44 AM, you wrote: RO> Hallo Laura, RO> On Mon, 19 Jun 2006 23:40:09 -0700GMT (20-6-2006, 8:40 , where I RO> 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. RO> Okay. Let's keep it simple. RO> You cannot put info from the message body in the address book, RO> it's only possible to place info from the headers in the AB. RO> So what you need to do is to create a message with the correct info in RO> a header and have that message triggering a filter that places the RO> info in the AB. RO> This message can either be a message addressed to yourself with the RO> from info of your new contact or a message addressed to your new RO> contact. RO> As your filter sent an automatic reply to your new contact it's easy RO> to create an outgoing filter that is triggered by your automatic reply RO> and have that filter add the recipient of your automatic reply to your RO> AB. RO> I suppose you're still with me now. RO> So basically you need two filters. RO> The first filter is an adaption of your original filter. RO> What you need it to do is to move the incoming message to RO> hncnewsletter folder, to park it and to reply to it. RO> When you select the reply action and press the 'edit' button, you can RO> edit the template it uses. RO> We'll get back to that template later. RO> The second filter you need, is an outgoing filter. It should be RO> triggered by your automatic reply, but as you can define that reply RO> yourself, it should be easy to get a correct condition. RO> The only action you need is that it adds the addressee to your AB. RO> 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? RO> You cannot put things in the header of an already received message. RO> That's why you need to put the stuff you want in the headers of your RO> 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? RO> Select the 'automatic reply' action, press the 'edit' button and RO> you're in the template it uses. RO>>> With a template and regular expressions A>> Where do i put the regular expressions RO> 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. RO> When you know the format of a given message, it's possible to extract RO> any given part of said message with a properly configured regular RO> expression. RO>>> %SetPattRegExp='(?is)(.*?)First\sName:\s(.*?)/nLast\sName:\s(.*?)\n'%- RO>>> %RegExpBlindMatch='%Text'%- RO>>> %SetHeader('To','"%SubPatt=_2_ %SubPatt=_3_" <%OFromAddr>')%- RO> Just put the stuff above somewhere in the template of your automatic RO> reply. No need to understand it right now. RO>>> I didn't test any of this. RO> 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. RO> Executing your outgoing filter is very easy. TB compares it RO> automatically against all messages it sends and when it matches, the RO> outgoing filter is executed after the matching message has ben sent. RO> Feel free to keep on asking. -- Best regards, alists mailto:[EMAIL PROTECTED] ________________________________________________ Current version is 3.80.06 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html