🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261411

Re: Request help with 40tude dialog program syntax

#261411
From: Rodney Pont
Date: Sat, 31 Dec 2016 21:35
29 lines
2089 bytes
On Sat, 31 Dec 2016 21:45:08 +0100, Stijn De Jong wrote:

>This is the same as above, but with the Remove_Header inserted:
>https://i.imgsafe.org/8182381b0a.jpg
>
>function From2Identity(from: String): String;
var
  Remove_Headers : String;

>begin   
>  if (StrMatch(from, 'Stijn De Jong <stijndekoning@nlnet.nl>')) then
>    result := 'id1'
>    Remove_Headers := 'User-Agent: ,Message-ID: ';
>  else if (StrMatch(from, 'First1 Last2 <email2@domain.com>')) then
>    result := 'id2'
>    Remove_Headers := 'User-Agent: ,Content-Transfer-Encoding: ';
>  else
>    result := 'unknown';
>     Remove_Headers := 'User-Agent: ,Mime-Version: '; 
>end;

Try adding the var section as above. If that says it's a duplicate the
Remove_Headers has been defined elsewhere, likely as a const, so try to
find where and change it to a string.

-- 
Faster, cheaper, quieter than HS2
and built in 5 years;
UKUltraspeed <http://www.500kmh.com/>
Technical Details
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2xvl5.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> <nfcnzpzcvasbuvgzrhx.oj2tz62.pminews@ouse.infohit.me.uk> <o495cr$177$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2xvl5.pminews@ouse.infohit.me.uk>
Subject: Re: Request help with 40tude dialog program syntax
Date: Sat, 31 Dec 2016 21:35:45 +0000
From: "Rodney Pont" <mlist4@infohit.me.uk>
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tz62.pminews@ouse.infohit.me.uk> <o495cr$177$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
Newsgroups: alt.windows7.general,news.software.readers
Lines: 31
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 OLIe9jSL2EwDYifFxXxcPQiKZBD5MrR4WIawtkgNSpRqhvyEko
X-Orig-Path: ouse.infohit.me.uk!not-for-mail
Cancel-Lock: sha1:INWXH8cvivAJ4H5dJ0pwnRv/tTU=
X-Newsreader: PMINews 2.00.1205 For OS/2
X-Received-Bytes: 2000
X-Received-Body-CRC: 1540648389