'Lo Luc,

On Thu, 21 Nov 2002 19:04:46 +0100 your time, you said:

L>  Good evening list,

L> I  tried  using  the  rewrap  regex  from  the library and adjusted it to
L> justify. Somehow it doesn't seem to work.

Well it should work OK. I am using it and it works a treat. I have this:

In the first Quick Template named "various_quote_wrap_p1":

[----begin QT "various_quote_wrap_p1"]

%COMMENT="%QUOTES"%-
%QINCLUDE="various_quote_wrap_p2"
%COMMENT=""

[----end QT "various_quote_wrap_p1"]

In the second Quick Template named "various_quote_wrap_p2":

[----begin QT "various_quote_wrap_p2"]

%IF:'%-
%SETPATTREGEXP="(?is-m)[^\n]+"%-
%REGEXPMATCH="%COMMENT"'<>'':'%-
%-
%WRAPJUSTIFY%-
%-
%WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="1"_

%COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="7"_%-
%QINCLUDE="various_quote_wrap_p2"'

[----end QT "various_quote_wrap_p2"]

Then in a Quick Template named "greet_informal_quote_wrap" I add the
following:

[----begin QT "greet_informal_quote_wrap"]

'Lo %OFromFName,

On%SETPATTREGEXP="(?m-s)^Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:%-
[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS" your time, you said:

%QINCLUDE="various_quote_wrap_p1"
%Cursor

[----end QT "greet_informal_quote_wrap"]

Then in the reply Folder Template or Address Book Template I add:

[----begin Folder Template/Address Book Template]

%QINCLUDE="greet_informal_quote_wrap"


[----end Folder Template/Address Book Template]

..and of course any other QINCLUDEs that you have as well :) And this works
just fine!

-- 
Sl�n,

 Simon @ theycallmesimon.co.uk   
                      
******************************************
PGP Key: http://pgp.theycallmesimon.co.uk/

Faffing about with TB! v1.61 on W2K SP3

#2925. Ass Qed Oil Rum Wry �


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to