🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #260524

Re: 40-tude Dialog script syntax question

#260524
From: Henry Jones
Date: Wed, 06 Jul 2016 02:10
39 lines
2460 bytes
On Tue, 5 Jul 2016 13:06:44 -0500, Sqwertz wrote:

> I can't see the original post since it was crossposted and sent 
> from a troll server.  

The crosspost was to ask for Pascal programming help, which the linux folks
have, and which the newsserver people might not have. But I respect the
removal and understand it.

> But if it's the script I'm thinking of, the 
> script is entitled "Remove any SINGLE header".  In which case simply 
> call the script twice without using the const 'RemoveHeader'.

That's VERY INTERESTING. 
You are clever.
I will test that out since it's kind of logical that it would work to run
the script twice (however, it may just redefine stuff - since it's all
compiled first).

> Hmm, doesn't look like the script was designed gracefully.  
The second script I posted is designed better.
The second script actually works with multiple headers!

> You would need to add a third argument - the header string - to the 
> function call.  Here is my UNTESTED implementation.  Note that I am
> Not a object pascal/Delphi programmer.  Changes are noted with '**' 
> at the beginning of the line - remove those before compilation.
> 
> Original script is at:
> http://dialog.datalist.org/scripts/RemoveAnyHeader.html

Thanks for pointing out the script location.
I had googled and didn't find the "official" web site anymore (it seems to
be dead).

Your information (and mine) will help the next person who takes up 40tude
dialog, so it's good to put it into the public record.

What I'm trying to figure out now though, is how to *add* a header!
Technical Details
Message-ID: <nlhpc3$35u$1@news.mixmin.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.(126883).mbox.7z!not-for-mail
References: <nlg32v$1q44$1@gioia.aioe.org> <nlg4ol$csb$1@n102.xanadu-bbs.net> <sukvoafe0s6s$.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <nlhpc3$35u$1@news.mixmin.net>
Subject: Re: 40-tude Dialog script syntax question
Date: Wed, 6 Jul 2016 02:10:35 +0000
From: Henry Jones <henry@example.com>
References: <nlg32v$1q44$1@gioia.aioe.org> <nlg4ol$csb$1@n102.xanadu-bbs.net> <sukvoafe0s6s$.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.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Mixmin
Injection-Date: Wed, 6 Jul 2016 02:11:16 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="7972f6e3184e9732d69eb13059e372ecd38b1a21";
 logging-data="3262"; mail-complaints-to="abuse@mixmin.net"
X-Received-Body-CRC: 388553899
X-Received-Bytes: 2428