Re: Message creation from body text filter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marcus, @1-Nov-2002, 12:45 +0100 (11:45 UK time) Marcus [M] in mid:1393905565.20021101124542@;wordit.com said: M> Hmmm, there's probably something about quick templates I've not M> understood yet. The following works, but what do I need to set up M> so that the result appears without quotes? erm... nothing to do with QT's, but more to do with macros. Just remove the %QUOTES= bit! M> I'm inside the received mail as a reply, and now I want to run M> the template: M> %QUOTES="%SETPATTREGEXP=""Name:\s+(\S+).*""%REGEXPBLINDMATCH=""%TEXT""Dear M> %SUBPATT=""1"", You just need to do this in the reply template: %SETPATTREGEXP="Name:\s+(\S+).*"%- %REGEXPBLINDMATCH="%TEXT"Dear %SUBPATT="1", M> I don't understand how %QINCLUDE works yet. The help file seems M> sketchy on that, it just drops hints. It's very simple. Create a new QT. Call it "GetName". Put the above macro snippet in it. Now, in your reply template, just put this: %QINCLUDE="GetName" That's it. That way, if you needed to repeat the extracted name anywhere further down in the reply, you simply repeat the QINCLUDE command. Marck>> If you're really stuck, TBTECH is the place to find help Marck>> writing so complex an extraction template. M> Okay, I'd better join that list then too. See you there ;-). - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.62/Beta7 on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE9wm+bOeQkq5KdzaARAiDnAKCR/PJQgxvLPl9yreyrluYKhpaJNgCgmz5s EALMCSkgDS4m2WmhlOpieoo= =5UXr -END PGP SIGNATURE- Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Message creation from body text filter
Friday, November 1, 2002, 2:06:32 AM, you wrote: Hi Marck, Marck> You don't need any. This is *exactly* what you're looking for. Make Marck> each sub-extraction a quick template and QINCLUDE them at will Marck> throughout your template. Hmmm, there's probably something about quick templates I've not understood yet. The following works, but what do I need to set up so that the result appears without quotes? I'm inside the received mail as a reply, and now I want to run the template: %QUOTES="%SETPATTREGEXP=""Name:\s+(\S+).*""%REGEXPBLINDMATCH=""%TEXT""Dear %SUBPATT=""1"", I don't understand how %QINCLUDE works yet. The help file seems sketchy on that, it just drops hints. Marck> If you're really stuck, TBTECH is the place to find help writing so Marck> complex an extraction template. Okay, I'd better join that list then too. Thanks, Marcus Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Message creation from body text filter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marcus, @1-Nov-2002, 00:44 +0100 (23:44 UK time) Marcus [M] in mid:1711106330.20021101004453@;wordit.com said: jwayne>> For example, jwayne>> %setpattregexp="(?i-s)(firstname\: +)(.+)"%RegExpBlindMatch="%Text"%SUBPATT="2" M> Thanks. The next part I can't figure out is the variable to M> capture the result in. There are no variables. Just numbered sub-patterns that resolve right there in the generated text. M> I want the result in plain text inside a new message. That's exactly where it goes from a regex extraction like that given. M> It works using %QUOTES=... , but I don't want quotes, just plain M> text. Using %TEXT=.. does not work. M> Any alternatives? You don't need any. This is *exactly* what you're looking for. Make each sub-extraction a quick template and QINCLUDE them at will throughout your template. If you're really stuck, TBTECH is the place to find help writing so complex an extraction template. - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.62/Beta7 on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE9wdOaOeQkq5KdzaARArIdAKDMvElN96IS3MvyWsLccMnz5hBdvgCgsG8p /c6oQNFzhqQqV/08dQXtKAU= =24od -END PGP SIGNATURE- Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Message creation from body text filter
Thursday, October 31, 2002, 12:37:08 AM, you wrote: jwayne> For example, jwayne> %setpattregexp="(?i-s)(firstname\: +)(.+)"%RegExpBlindMatch="%Text"%SUBPATT="2" Thanks. The next part I can't figure out is the variable to capture the result in. I want the result in plain text inside a new message. It works using %QUOTES=... , but I don't want quotes, just plain text. Using %TEXT=.. does not work. Any alternatives? Marcus Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Message creation from body text filter
On Wednesday, October 30, 2002, 5:01:40 PM, Marcus <[EMAIL PROTECTED]> wrote: M> Is it possible to grab text from a message body and use that M> in a new mail? M> I have a web form which sends me a mail with fields like: M> firstname: fred M> lastname: bloggs M> There's no info in the headers. Can I filter out the M> person's name and use it in a semi-automated reply to them? Check out the %TEXT macro. You can extract info from it using other macros. For example, %setpattregexp="(?i-s)(firstname\: +)(.+)"%RegExpBlindMatch="%Text"%SUBPATT="2" will return "fred". jon -- jwayne [EMAIL PROTECTED] Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Message creation from body text filter
Is it possible to grab text from a message body and use that in a new mail? I have a web form which sends me a mail with fields like: firstname: fred lastname: bloggs There's no info in the headers. Can I filter out the person's name and use it in a semi-automated reply to them? Thanks, Marcus Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html