🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261404

Re: Request help with 40tude dialog program syntax

#261404
From: Rodney Pont
Date: Sat, 31 Dec 2016 20:11
27 lines
1990 bytes
On Sat, 31 Dec 2016 20:50:46 +0100, Stijn De Jong wrote:

>This is the code I am using which sets the identity.
>http://dialog.datalist.org/scripts/CheckingIdentity.html
>
>All I'm trying to do is meld the two, where the outgoing headers to be
>removed depend on the identity of the sender.

I looked at the setting identity script so 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: '; 


Your sample script has the comparison in brackets and used := as
assignment. It also appears to not use semicolon for line ending after
a then if there is an else following but does after the else.

Does id1 and id2 need to be in quotes, 'id1' 'id2'

-- 
Faster, cheaper, quieter than HS2
and built in 5 years;
UKUltraspeed <http://www.500kmh.com/>
Technical Details
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2tz62.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
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2tz62.pminews@ouse.infohit.me.uk>
Subject: Re: Request help with 40tude dialog program syntax
Date: Sat, 31 Dec 2016 20:11:30 +0000
From: "Rodney Pont" <mlist4@infohit.me.uk>
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org>
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
Lines: 29
Reply-To: "Rodney Pont" <mlist4@infohit.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ADvLW0lu+/pR1Qjz6KKZrQ9eAtZi02V4Za4cI/sIuPvgdbOW7j
X-Orig-Path: ouse.infohit.me.uk!not-for-mail
Cancel-Lock: sha1:yMbk5P20TEUITnPmESq/xAoHBpg=
X-Newsreader: PMINews 2.00.1205 For OS/2
X-Received-Bytes: 1902
X-Received-Body-CRC: 409718473