Hello Marck,

> Try this instead:

> %SETPATTREGEXP="(Newsgroups:.*\n?)"%-
> %REGEXPBlindMATCH="%HEADERS"%subpatt="1"%-
> %IF:"%ToList"="":"":"%-

Thanks for the suggestion, but it definitely did not work as expected.

I used RegExTest 0.3.1� to test. The regex you provided saved every
kludge line from "Newsgroup:" to the end of the kludges and then added
the From:, Subject:, and Date: lines. I eliminated the "?" and the
regex behaved appropriately in RegExTest, but NOT in The Bat!, where
the template behavior was unchanged.

For info, here's the current "Save Message" template:

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

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

"
<<-------END

My Newsreader is Agent 1.93. When a message is posted to a group, a
copy is sent via BCC to me. That copy contains a Newsgroup: kludge,
but no To: kludge. That's what spurred this template change.

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

Roelof, you're quite right. How can that be fixed other than by
changing the order of the saved lines? In principal, I'd like the To:
or Newsgroup: line to appear first.

TIA for your help.

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