🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217177

Re: [Dialog] I need two X-No-Archive Headers

#217177
From: Sqwertz
Date: Fri, 22 Feb 2008 21:13
35 lines
2617 bytes
On Fri, 22 Feb 2008 15:11:31 -0500, Oliver Cromm wrote:

> * Gember Breuk wrote:
> 
>> Here is the script that makes it work:
> 
> Attention! I don't believe this works correctly. 
> 
> From my understanding, it *overwrites* the header following User-Agent
> (the "anchor") instead of inserting something, and may even drop
> anything after that. In my test, it actually seemed to delete more than
> one header.
> 
> Test well before deploying it in earnest. I may try to improve it
> myself.

I would have thought this would work, but I keep getting an index
out of bounds for some reason.

procedure ChangeAnyHeader(Message:TStringlist;IsEmail:boolean);
var i:integer;
    s:string;
begin
    i := 1;   
    while (Message.Strings[i]<>'') do
    begin
      s := s + message.strings[i]; 
      if pos(ChangeHeader,Message.Strings[i])<>0 then
      begin
       s := s + AddHeader;
      end;
      i := i + 1;
    end; {end of while}
    message.text := s;
end;
Technical Details
Message-ID: <1ci3wbb91jimr.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!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.net.POSTED!666d6152!not-for-mail
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <1cq6okvpxxuxn$.dlg@mid.crommatograph.info>

Show Full Headers
Complete Article Headers
Message-ID: <1ci3wbb91jimr.dlg@sqwertz.com>
Subject: Re: [Dialog] I need two X-No-Archive Headers
Date: Fri, 22 Feb 2008 21:13:36 GMT
From: Sqwertz <swertz@cluemail.compost>
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <1cq6okvpxxuxn$.dlg@mid.crommatograph.info>
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!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr11.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: yes
X-WebTV-Stationery: Standard; BGColor=red;
 Background="http://i26.tinypic.com/25polj9.gif"; TextColor=red
Lines: 35
NNTP-Posting-Host: 75.55.119.163
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr11.news.prodigy.net 1203714816 ST000 75.55.119.163 (Fri,
NNTP-Posting-Date: Fri, 22 Feb 2008 16:13:36 EST
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: TSU[@SJGDZSYB_X[TBCBNWX@RJ_XPDLMN@GZ_GYO^BTBTSUBYFWEAE[YJLYPIWKHTFCMZKVMB^[Z^DOBRVVMOSPFHNSYXVDIE@X\BUC@GTSX@DL^GKFFHQCCE\G[JJBMYDYIJCZM@AY]GNGPJD]YNNW\GSX^GSCKHA[]@CCB\[@LATPD\L@J\\PF]VR[QPJN