Hello Marck,

This works fine, without extra line feeds at the start of the message:

%IF:"%ToList"="":"":"To:      %OToList"%-
%SETPATTREGEXP="(?m-s)(^Newsgroups:.*)"%-
%REGEXPBlindMATCH="%HEADERS"%subpatt="1"%-
%IF:"%CCList"="":"":"
CC:      %CCList"
From:    %OFromName <%OFromAddr>
Subject: %OSubj
Date:   %QINCLUDE="testdate"

%Text%-
%IF:"%ATTACHMENTS"="<none>":"
":"
-----
Attachments: %ATTACHMENTS
-----

"

I still don't understand why
%SETPATTREGEXP="(Newsgroups:.*\n)"%-
%REGEXPBlindMATCH="%HEADERS"%subpatt="1"

... does not work as anticipated. I suspect (please confirm) a bug in
The Bat! regex handling.

Roelof wrote:
> even when you delete the regexp, you still get an empty line

Yes, I realize the mistake. Instead of:

%IF:"%ToList"="":"":"
To:      %OToList"

... I should have used:

%IF:"%ToList"="":"":"To:      %OToList"%-

regards, Andy

[Using The Bat! 1.62 Christmas Edition under Windows 2000 Pro SP3
 on a "made from scratch" P4-2.4 GHz/512 MB RAM]


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

Reply via email to