🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144157

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

#144157
From: Gnoopy
Date: Wed, 25 Feb 2004 09:52
71 lines
4116 bytes
Op 24 Feb 2004 22:11:59 GMT schreef Tech Zero:

> Path: pheme.telenet-ops.be!ossa.telenet-ops.be!feed1.news.be.easynet.net!skynet.be!fu-berlin.de!uni-berlin.de!209.115.158.219!not-for-mail
> From: Tech Zero <spamnet-feb@dragonfur.ca>
> Newsgroups: news.software.readers
> Subject: Re: [Dialog] How to set an "odd" header...
> Date: 24 Feb 2004 22:11:59 GMT
> Lines: 21
> Message-ID: <Xns94999ABE3B788ZeroOne@news.individual.net>
> References: <Xns9492A8C773173ZeroOne@news.individual.net> <0Nydne7ZLslSaK_d4p2dnA@giganews.com> <pl4z8pkp67uw.1w1b60rml62f8$.dlg@40tude.net> <Xns949869CFD47D7ZeroOne@news.individual.net> <x4aobdjl9uer.1pmk07u31h857.dlg@40tude.net>
> NNTP-Posting-Host: 209.115.158.219
> X-Trace: news.uni-berlin.de 1077660719 51172163 I 209.115.158.219 ([139626])
> User-Agent: Xnews/06.01.10
> Xref: ossa.telenet-ops.be news.software.readers:138228
> 
> The voice of "Gnoopy" drifted in on the cyber-winds, 
> from the sea of virtual chaos...
> 
>>> I assume "cGroup" sets the groups...
>>> So how would I set it for a range of groups?
>>> The groups that need to have "Distribution: fur" set start with 
>>> "FUR"...
>> 
>> as I mentioned before, I didn't write the script myself, but I
>> suppose that if you change the assign 'FUR' to cGroup, this add
>> the Distribution header to all newsgroups containing the word FUR
>> in it 
> 
> It was posted 5 hours after I made reply post...
> 
> Assign 'FUR' to cGroup wouldn't work, because it catches more groups 
> then those that start with "FUR", just like 'news' catches more then 
> just this group. It's not an adequate solution, but thanks anyways.

we don't give up this easily (at least, I don't)
let give this script a chance

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.';
	   nGroup = '.news.'; // we don't want this into the name of the newsgroup
           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) and (pos(nGroup,
message.string[i]) = 0) then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  

(This script is tested in this message)
-- 
Greetz,

Gnoopy

E Pluribus Unix
Technical Details
Message-ID: <nw2wmdd4l3f9.fnjkx28vsjc8.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.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!news.cs.univ-paris8.fr!nerim.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> <pl4z8pkp67uw.1w1b60rml62f8$.dlg@40tude.net> <Xns949869CFD47D7ZeroOne@news.individual.net> <x4aobdjl9uer.1pmk07u31h857.dlg@40tude.net> <Xns94999ABE3B788ZeroOne@news.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <nw2wmdd4l3f9.fnjkx28vsjc8.dlg@40tude.net>
Subject: Re: [Dialog] How to set an "odd" header...
Date: Wed, 25 Feb 2004 09:52:34 GMT
From: Gnoopy <gnoopyVERWIJDEREN@yucom.be>
References: <Xns9492A8C773173ZeroOne@news.individual.net> <0Nydne7ZLslSaK_d4p2dnA@giganews.com> <pl4z8pkp67uw.1w1b60rml62f8$.dlg@40tude.net> <Xns949869CFD47D7ZeroOne@news.individual.net> <x4aobdjl9uer.1pmk07u31h857.dlg@40tude.net> <Xns94999ABE3B788ZeroOne@news.individual.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.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!news.cs.univ-paris8.fr!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
Distribution: fur
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.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: 71
NNTP-Posting-Host: 213.119.69.163
X-Complaints-To: abuse@telenet.be
X-Trace: hestia.telenet-ops.be 1077702754 213.119.69.163 (Wed,
NNTP-Posting-Date: Wed, 25 Feb 2004 10:52:34 CET
Organization: Telenet Internet