Hallo Maurice,

On Mon, 18 Jul 2005 16:11:38 +0200GMT (18-7-2005, 16:11 +0200, where I
live), you wrote:

MS> Based on the recursive templates created by Januk, I created a couple
MS> of templates that are supposed to create the salutation of a new
MS> message. The desired effect is that even if I use 'bmarks, mgerritsen'
MS> to address the message, where bmarks is Bill Marks and mgerritsen is
MS> Marc Gerritsen, the salutation should be "Bill, Marc,"

Actually, I would have never taken the trouble to do what you did, as
Robin Anson created a perfect template to do what you're intending.

MS> Currently, this is working but for one small issue that I can't seem
MS> to figure out: The names get placed on separate lines, instead of on
MS> just one line. Can someone have a look at this and tell me what I'm
MS> too confused about to see?

These templates are way beyond me. I can't figure out the function of
%_SL_Num_Space, %_SL_Leading_Space and above all the
%SETPATTREGEXP("^,\s(.*)\Z")%- that you're using at the end of the
SalutationList QT
The fact that you've integrated your whole debug function doesn't make
it any easier.

MS> Here are the macro's concerned:

MS> ----- [ SALUTATIONLIST ]
MS> %_SL_Num_Space(1)%-
MS> %-
MS> %_SL_OrgTo("%TOLIST")%-
MS> %_SL_Text("%TOLIST; ")%-
MS> %IF:"%_Debug"="1":"_SL_Text: %_SL_Text
MS> %QINCLUDE(SALUTATIONLIST2)
MS> "%-
MS> %SETPATTREGEXP("^(?s)\s{%_SL_Num_Space}(.*?)[;,]\s*\Z")%-
MS> %REGEXPMATCH('%QINCLUDE("SALUTATIONLIST2")')%-
MS> %SETPATTREGEXP("^,\s(.*)\Z")%-
MS> %TO=""%TO="%_SL_OrgTo"%-

However, there's a simple solution, just change your RegExpMatch line
into this:
%Wrapped(%REGEXPMATCH('%QINCLUDE("SALUTATIONLIST2")'))%-
It's not the elegant solution I would've preferred, but it works.

-- 
Groetjes, Roelof

Windows: written entirely by and for blondes

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

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to