Hallo Laura,

On Tue, 20 Jun 2006 22:29:35 -0700GMT (21-6-2006, 7:29 , where I
live), you wrote:

A> Newsletter filter - for incoming messages-

A> $$$$ TB! Message Filter $$$$
A> beginFilter
A> UID: [F89D860C.01C68B83.526F817F.2AF7C982]
A> Name: newsletter
A> Filter: {\0D\0A\20`2`2`OCTOS\20Newsletter\20Form\20Subscription\0D\0A}
A> Park
A> AddToAddressBook From Reply-To CC BCC groups octosnewsletter

You should not use the AddToAddressBook action in your incoming
filter. If you do that, you'll end with multiple entries with the same
address, but with different first names etc.

A> Reply template
A> 
%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

As I said, I didn't test my regexp, there was a tiny mistake in it.
I used a '/n' in stead of a '\n' :-(
That's why you got " " as the real name.

Please use this expression:
%SetPattRegExp='(?is)(.*?)fname:\s(.*?)\nlname:\s(.*?)\n'%-
%RegExpBlindMatch='%Text'%-
%SetHeader('To','"%SubPatt=_2_ %SubPatt=_3_" <%OFromAddr>')%-

A> IsActive
A> Ignore
A> endFilter


---->>(note above: I changed the string first name to fname
A> and I changed the last name to lname. I think I did that properly.)

Yep, you did, the mistake was all mine.



A> outbound filter 

A> $$$$ TB! Message Filter $$$$
A> beginFilter
A> UID: [5213A49E.01C694F0.12DA8EA8.4D1BED4C]
A> Name: sending\20the\20data\20to\20users
A> Filter: {\0D\0A\20`2`0`OCTOS\20Newsletter\20Form\20Submission\0D\0A}
A> AddToAddressBook From Reply-To TO groups octosnewsletter
A> IsActive
A> Ignore
A> endFilter

A> ---->> Note: I wasn't sure which to put in the AddToAddressBook (I think it 
would be
A> TO only?

Yep, it should be To: only.


A> To: " " <[EMAIL PROTECTED]>

That was caused by my typo.

A> I also need to create a filter to handle if people put REMOVE in the
A> subject line.

You should be able to manage the condition for that filter and the
action for that filter should be 'delete addresses from address book'

A> I will be adding address info at some point. 
A> street, city, state, zip code, octosmember ID,
A> empty address line's in case they are from another country.
A> Will this complicate this process extensively?

This won't complicate matters at all, unless you want the extra info
to be listed in the address book too. And I'm not convinced that that
can be achieved fully automatic. It should be possible to place all
that stuff in a .vcf or .ldif file and import that file, but you can't
import those files automated and you've got to assign the groups
manually, so that would be two actions for every subscriber. (Though I
suppose that's better than adding everything manually.)

-- 
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: pgpmBwZBjj39H.pgp
Description: PGP signature

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

Reply via email to