🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144060

Re: [Dialog] How to set an "odd" header...

#144060
From: Gnoopy
Date: Mon, 23 Feb 2004 16:06
61 lines
3237 bytes
Op Wed, 18 Feb 2004 06:19:56 +0100 schreef Jarrod Cifer:

> Tech Zero, upon reaching nirvana, postulated: 
> 
>> I just can't seem to find where I can set the Distribution tag. 
>> She needs to set "Distribution: fur" for messages posted to the FUR.* 
>> news groups in order to get past the Fur Filter-Bot
> 
> A quick and dirty script to do this:
> 
>| program OnBeforeSendingMessage;
>| 
>| function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean;
>| begin
>| message.insert (1, 'Distribution: fur');
>| 
>| end;
>| 
>| begin
>| end.
> 
> Disclaimer: This is very crude and should be refined to only work when
> certain identity is active. Just paste it(sans quote character) into the
> OnBeforeSendingMessage event script. Save, compile and then run it. The
> script gurus should be here any minute now to post a real nice script for
> doing this. I will post a request for the Distribution header to be added
> to the next release.

maybe this one can help
it inserts the distribution-header only in a certain newsgroup...

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.software.readers';
           cDistribution = 'Distribution: fur';

     function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean; 
     var i : integer;
     begin 
       for i := 0 to message.count-1 do
       begin
         if copy(message.strings[i], 1, length(cNewsgroups)) = cNewsgroups
then
         begin
           if pos(cGroup, message.strings[i]) > 0 then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  
-- 
Greetz,

Gnoopy

On the other hand, are different fingers.
Technical Details
Message-ID: <pl4z8pkp67uw.1w1b60rml62f8$.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!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!feed1.news.rcn.net!rcn!in.100proofnews.com!in.100proofnews.com!npeer.de.kpn-eurorings.net!newsfeed.arcor-online.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
References: <Xns9492A8C773173ZeroOne@news.individual.net> <0Nydne7ZLslSaK_d4p2dnA@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <pl4z8pkp67uw.1w1b60rml62f8$.dlg@40tude.net>
Subject: Re: [Dialog] How to set an "odd" header...
Date: Mon, 23 Feb 2004 16:06:47 GMT
From: Gnoopy <gnoopyVERWIJDEREN@yucom.be>
References: <Xns9492A8C773173ZeroOne@news.individual.net> <0Nydne7ZLslSaK_d4p2dnA@giganews.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!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!feed1.news.rcn.net!rcn!in.100proofnews.com!in.100proofnews.com!npeer.de.kpn-eurorings.net!newsfeed.arcor-online.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.7.1nl
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Face: %}BhvHUV<//er~>@_$KLO/M0:{nvCc$mw}yyN5$Zta5*1${m_Tg)WaWxT)C}!On=C/FB`%b
 LCYjh9RTaxwv"$<.njJ#7,9gkT?-]IaIwDE._he>Cie}; =!/
Lines: 61
NNTP-Posting-Host: 213.119.69.163
X-Complaints-To: abuse@telenet.be
X-Trace: hestia.telenet-ops.be 1077552407 213.119.69.163 (Mon,
NNTP-Posting-Date: Mon, 23 Feb 2004 17:06:47 CET
Organization: Telenet Internet