Hello Miguel,
On Sunday, March 9, 2003 at 01:25 GMT +0100, a beagle known as Miguel
A. Urech [MAU] barked:
I don't see any problem with your templates, so there must be
something odd being passed to the print_recipient2 template.
For testing purposes, let's try a few things to figure out what's
happening:
1. Change the reply template so you remove the % symbol from in front
of the %COMMENT macros and the %QINCLUDE macros.
- This will show us what exactly is being sent to print_recipient
2. Reverse the change above and change the last line in the
print_recipient template from %COMMENT="" to %COMMENT
- This will let us see how far the print_recipient2 template got
before failing.
3. Reverse the change above and *add* a line to the beginning of the
print_recipient2 template. Put the macro %COMMENT="" as the very
first line of print_recipient2.
- This will tell us if print_recipient2 is being called, and what
text is being sent to be processed.
4. Reverse the change above and change print_recipient2 to the
following.
- This template is slightly modified to ignore some more
white space. The modification shouldn't hurt the performance
of the template in normal cases.
=====[Begin print_recipient2]=====
%REM='
Recipient List reformating routine.
recipient2 = recursive engine QT
Written by Januk Aggarwal
November 2002
'%-
%-
%IF:'%-
%SETPATTREGEXP=$(?i)^\d*\n\s*?(\"?(.*?)\"?\s*(\<.*?\>)?\s*[;,]\s*)$%-
%REGEXPMATCH=$%COMMENT$'<>'':'%-
%-
%SETPATTREGEXP="\s{%-
%-%-%SETPATTREGEXP=#^\d*#%-
%-%-%REGEXPMATCH=#%COMMENT#}"%-
%REGEXPMATCH=" "%-
%-
%SETPATTREGEXP=$(?i)^\d*\n\s*?((\"?(.*?)\"?\s*(\<.*?\>)?)\s*[;,]\s*)?$%-
%REGEXPBLINDMATCH=$%COMMENT$%-
%SUBPATT=$2$
%-
%COMMENT=_%-
%-%-%SETPATTREGEXP=$(?i)^(\d*\n)\s*?(\"?(.*?)\"?\s*(\<.*?\>)?\s*[;,]\s*)?(.*)$%-
%-%-%REGEXPBLINDMATCH=$%COMMENT$%-
%-%-%SUBPATT=$1$%-
%-%-%SUBPATT=$5$_%-
%-
%QINCLUDE="print_recipient2"'%-
=====[ End print_recipient2]=====
MAU> If I use a template with To: %OTOLIST I get:
MAU> To: [EMAIL PROTECTED]
MAU> and
MAU> To: "Miguel A. Urech" <[EMAIL PROTECTED]>
That seems ok. Test number 1 above should give me the last bit of
confidence to rule this out as the source of the problem.
--
Thanks for writing,
Januk Aggarwal
________________________________________________________
Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html