🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261405

Re: Request help with 40tude dialog program syntax

#261405
From: Stijn De Jong
Date: Sat, 31 Dec 2016 20:20
48 lines
2501 bytes
Op Sat, 31 Dec 2016 20:00:07 +0000 (GMT), Rodney Pont schreef:

> Try;
> if identity == id1 then  
>    Remove_Headers='User-Agent: ,Message-ID: ';
> else if identity == id2 then
>    Remove_Headers='User-Agent: ,Content-Transfer-Encoding: ';
>  else
>    Remove_Headers='User-Agent: ,Mime-Version: '; 
> 
> = is an assignment operator, it makes the left side = to the right
> side, you need the double = for a comparison.
> 
> I'm not familiar with the scripting you are using but that's worth
> trying.

Thanks for that prompt help (which I realize came before I added the actual 
scripts that I was melding).

I don't think the "if" sytax is my mental problem here (it may be a problem 
later, but not just yet).

I think there is a "rule" that I don't understand which doesn't allow me to 
redefine the Remove_Headers variable (or constant, as it seems to be).

For example, this works:
 const
 Remove_Headers='User-Agent: ,Message-ID: ';

But this fails:
https://i.imgsafe.org/811a9201c9.jpg

Just redefining the variable fails with a "duplicate identifier" error:
 const 
 Remove_Headers='User-Agent: ,Message-ID: ';
 Remove_Headers='User-Agent: ,Mime-Version: '; 

This also fails with a "duplicte identifier" error:
 const 
 Remove_Headers='User-Agent: ,Message-ID: ';
 const
 Remove_Headers='User-Agent: ,Mime-Version: ';

If I remove the "const", it complains of a different error, so, the const 
is apparently required. 
 https://i.imgsafe.org/811aae6f99.jpg

All I'm asking, really, is how to re-define the variable "Remove_Headers".
Technical Details
Message-ID: <o493u0$u1j$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <o491jh$7jr$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk>

Show Full Headers
Complete Article Headers
Message-ID: <o493u0$u1j$1@news.mixmin.net>
Subject: Re: Request help with 40tude dialog program syntax
Date: Sat, 31 Dec 2016 21:20:09 +0100
From: Stijn De Jong <stijndekoning@nlnet.nl>
References: <o491jh$7jr$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: alt.windows7.general,news.software.readers
Organization: Mixmin
Injection-Date: Sat, 31 Dec 2016 20:20:17 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="f488a3b4fbd3c0b3b3a811b4d4a45852bb9fb7ae";
 logging-data="30771"; mail-complaints-to="abuse@mixmin.net"
X-Received-Body-CRC: 2821334191
X-Received-Bytes: 2437