🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #136286

[Dialog] Scripting question

#136286
From: Ernie Ramaker
Date: Mon, 27 Oct 2003 23:46
16 lines
1649 bytes
I have this script to add a Distribution-header to outgoing messages:

program OnBeforeSendingMessage;

function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean; 
begin 
message.insert (1, 'Distribution: world'); 
end; 
 
begin 
end.

Now, if I wanted to check which newsgroup the message is sent to, and
then only add the header if that group is "foo.bar", how would I go
about doing that?
Technical Details
Message-ID: <14njz20cxpwyw$.1x5lgm0w0isr5$.dlg@40tude.net>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!ip503d08bf.speed.planet.NL!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <14njz20cxpwyw$.1x5lgm0w0isr5$.dlg@40tude.net>
Subject: [Dialog] Scripting question
Date: Tue, 28 Oct 2003 00:46:37 +0100
From: Ernie Ramaker <ernieusenet@nordom.nl>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!ip503d08bf.speed.planet.NL!not-for-mail
Newsgroups: news.software.readers
Lines: 16
NNTP-Posting-Host: ip503d08bf.speed.planet.nl (80.61.8.191)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1067298398 36332901 80.61.8.191 (16 [48064])
User-Agent: 40tude_Dialog/2.0.7.67 (223ea534.493.55)
X-Accept-Language: nl,no,nn,nb,da,af,sv,en,de,fo,fy,nds,is,non
X-Face: &oxust&f7?u;
 m?,C"sb2L"O`^_f_tB'ZjLR(Z6(tpQ.8>s6]s1{U|~oa?x|@$?Kb<il>Z>lrP4d+;
 B{d*0T(#G^+{k0\FybYEYo"zT8g9*4l@fr)d:?Z#8!\Y%%Upj