-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In a message dated, Fri, 29 Mar 2002 19:13:14 -0000, Jon Lawrance [JL]
wrote:
...
JL> I get an email similar to the following:

JL> Name: Joe Bloggs
JL> City: New York
JL> Product: ICC
JL> Amount $97

JL> I would like to build a text file which appends each new order as
JL> they come in.

JL> Is this possible?

It would appear so. Note that I built this regex macro based on your
example above. Normally we discuss complex things such as regular
expressions and their use on TBTECH but I'll still explain this since
it has to do with filtering.

Create your filter with strings to use etc. To get the text exported,
go into the filter rules' filter actions tab, scroll down until you
reach the option 'Export Message to File'.

Select 'Append to Existing file'.

There are two buttons associated with the action. The one to the left
will bring up a dialog for you to browse to and/or create the desired
text file. The button to the right will bring up the template that
defines how the message text is exported.

In the export format template put the following regex:

%SETPATTREGEXP="(?is)(^Name:.*?\nCity.*?\nProduct.*?\nAmount:?.*?\n).*"%-
%REGEXPBlindMATCH="%TEXT"
%Subpatt="1"

You can test this on some of your messages. You can assign a shortcut
to the filter so that you can manually test messages.

- --
           Allie C Martin
  List Moderator and fellow end user
PGPKey - mailto:[EMAIL PROTECTED]
______________________________________
TB! v1.60c & Windows XP 5.1.2600
_
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)

iEYEARECAAYFAjykxk4ACgkQV8nrYCsHF+Ie4ACfVBd92nuUP/lTj2bIZB8n5mFJ
+UwAoLbP1qb9gzTaW3Oh2eStUk6xm8oP
=ODWM
-----END PGP SIGNATURE-----



________________________________________________________
Current Ver: 1.60c
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]

Reply via email to