🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #206197

Re: [Dialog] User-Agent Header PCLinuxOS 2007

#206197
From: anonymous
Date: Fri, 21 Sep 2007 15:07
58 lines
2806 bytes
On Fri, 14 Sep 2007 15:56:46 -0400, Gember Breuk wrote:

> Oh, don't get excited. Here's a script that will change almost any text
> you want before sending the post. Just change the "old_text" and
> "new_text" constructs as needed:
> 
> <--------------------------------------> 
> 
> program OnBeforeSendingMessage;
> 
> const old_text='A Dialog by any other name... ';
> const new_text ='Dialog by any other name...';
> 
> function StringReplace(S, OldPattern, NewPattern: string): string;
> 
> var
>   SearchStr, Patt, NewStr: string;
>   Offset: Integer;
> begin
>   SearchStr := S;
>   Patt := OldPattern;
>   NewStr := S;
>   Result := '';
>   while SearchStr <> '' do
>   begin
>     Offset := AnsiPos(Patt, SearchStr);
>     if Offset = 0 then
>     begin
>       Result := Result + NewStr;
>       Break;
>     end;
>     Result := Result + Copy(NewStr, 1, Offset - 1) + NewPattern;
>     NewStr := Copy(NewStr, Offset + Length(OldPattern), 2147483647);
>     SearchStr := Copy(SearchStr, Offset + Length(Patt), 2147483647);
>   end;
> end;
> 
> function OnBeforeSendingMessage(var Message: TStringlist; Servername:
> string; IsEmail: boolean):boolean;
> var s:string;
> begin
> result:=true;
> s:=message.text;
> s:=StringReplace(s,old_text,new_text);
> message.text:=s;
> end;
> 
> begin
> end.
> 
> <-------------------------------------->

Thank you! I am sorry I didn't respond right away. This thread got so
cluttered with off-topic junk, that I missed your useful post. 

I finally got a plonk-file up and running, so good posts are much more
visible now :)  You wouldn't believe how different this thread looks with a
plonk file and without :)
Technical Details
Message-ID: <fd0mo1$ugn$1@aioe.org>
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!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail
References: <dr7lcptqw7pe.qqc1uiyng334$.dlg@40tude.net> <1blxavupdk9bb$zmnl@blackholespam.net> <1tr6kfbi66c3o$.1n54cwiu0xypu$.dlg@40tude.net> <irrz30ed4cbb.dlg@blackholespam.net>

Show Full Headers
Complete Article Headers
Message-ID: <fd0mo1$ugn$1@aioe.org>
Subject: Re: [Dialog] User-Agent Header PCLinuxOS 2007
Date: Fri, 21 Sep 2007 11:07:10 -0400
From: "anonymous@free.fr" <anonymous@free.fr>
References: <dr7lcptqw7pe.qqc1uiyng334$.dlg@40tude.net> <1blxavupdk9bb$zmnl@blackholespam.net> <1tr6kfbi66c3o$.1n54cwiu0xypu$.dlg@40tude.net> <irrz30ed4cbb.dlg@blackholespam.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 58
NNTP-Posting-Host: JYIapi3qNLrEv15mmA8gfA.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
X-No-Archive: yes
Archive: no