Article View: news.software.readers
Article #217330[Dialog] Help with Scripting
From: Sqwertz
Date: Fri, 29 Feb 2008 21:44
Date: Fri, 29 Feb 2008 21:44
63 lines
3430 bytes
3430 bytes
I'm still trying to figure out why this simple script wants to change
my existing "X-No-Archive: Yes" into "X-No-archive: banter",
and then add another one at the end. It should add the one at
the one at the end, but not change by existing 'XNA: Yes' header.
program OnBeforeSendingMessage;
procedure AddAnyHeader(AddHeader:String; var Message:TStringlist;
IsEmail:Boolean);
var i: integer;
begin
If not IsEmail then begin
i := 1;
while Message[i] <> '' do
i := i + 1;
Message.insert(i, AddHeader);
end
end;
function OnBeforeSendingMessage(var Message : TStringlist;
Servername : string;
IsEmail : boolean ):boolean;
begin
AddAnyHeader ('X-No-Archive: banter', Message, IsEmail);
result := true;
end;
//
----------------------------------------------------------------------
begin
end.
This script produces headers like:
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <e2clhya4o2ne.dlg@sqwertz.com>
X-No-Archive: banter
X-WebTV-Stationery: Standard; BGColor=red; <wrapped>
Background="http://i26.tinypic.com/25polj9.gif"; TextColor=red
X-No-Archive: banter
Lines: 19
NNTP-Posting-Host: 75.55.119.163
X-Complaints-To: abuse@prodigy.net
etc...
As you can see from my current headers, Dialog inserts the XNA header
from the option in my "Identities" setup options, along with my other
custom X-Header (X-WebTV-Stationery), and then script comes along and
appends another XNA header at the bottom, just before my news-server's
headers are stamped on there.
But why does it change the first XNA from "yes" into "banter"? I have
removed the XNA custom header and redefined it under X-Headers and
Identities, but it still shows up as "banter" instead of "yes" and I
can only assume that this script is changing it.
-sw
Technical Details
Message-ID:
<ha9nabr6k714$.dlg@sqwertz.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.net.POSTED!666d6152!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <ha9nabr6k714$.dlg@sqwertz.com> Subject: [Dialog] Help with Scripting Date: Fri, 29 Feb 2008 21:44:49 GMT From: Sqwertz <swertz@cluemail.compost> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.net.POSTED!666d6152!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.15.41 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-No-Archive: banter X-WebTV-Stationery: Standard; BGColor=red; Background="http://i26.tinypic.com/25polj9.gif"; TextColor=red X-No-Archive: banter Lines: 63 NNTP-Posting-Host: 75.55.119.163 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr12.news.prodigy.net 1204321489 ST000 75.55.119.163 (Fri, NNTP-Posting-Date: Fri, 29 Feb 2008 16:44:49 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: OP]QSUSEGBSGCFD[LZKJOPHAWB\^PBQLGPQRZ\YIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM