🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261658

Re: Request help with 40tude dialog program syntax

#261658
From: Stijn De Jong
Date: Thu, 05 Jan 2017 23:59
36 lines
2430 bytes
> X-Comment: If this shows up, JJ is a veritable genius!

That Add_Header line worked!

> FROM:
>   if StrMatch(newsgroup, 'news.software.readers') then
>     result := 'id1'   
> TO:
>   if StrMatch(newsgroup, 'news.software.readers') or
>      StrMatch(newsgroup, 'alt.windows7.general') then
>     result := 'id1'

But this had some kind of syntax error so I had to put it back to your 
original single newsgroup. But to help others with syntax, I need to 
experiment to see how to fix that so there is at least one example that can 
handle multiple newsgroups.

if (StrMatch(newsgroup, 'ng1') or StrMatch(newsgroup, 'ng2')) 

Here's a vignette of what I'm using for this post:

function NewsGroup2Identity(newsgroup: String): String;   
// id1 is for news.software.readers,alt.windows7.general  
//SYNTAX: if (StrMatch(newsgroup, 'ng1') or StrMatch(newsgroup, 'ng2')) 
//
begin
  if (StrMatch (newsgroup, 'news.software.readers') 
  or StrMatch(newsgroup, 'alt.windows7.general')) then
    result := 'id1'
  else if StrMatch(newsgroup, 'alt.free.newsservers') then
    result := 'id2'
  else if StrMatch(newsgroup, 'alt.test') then
    result := 'id3'
  else
    result := '';
end; 
Technical Details
Message-ID: <o4mmls$1ufs$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
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org> <o492qg$a9k$1@gioia.aioe.org> <1ibo1gzmbqy5b.33119bupvh2q.dlg@40tude.net> <o4h57j$hhe$6@news.mixmin.net> <o4jr33$u80$1@news.mixmin.net> <7vpx5y09pu98.1sukl5d600sda$.dlg@40tude.net> <o4mllr$1tes$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <o4mmls$1ufs$1@gioia.aioe.org>
Subject: Re: Request help with 40tude dialog program syntax
Date: Fri, 6 Jan 2017 00:59:55 +0100
From: Stijn De Jong <stijndekoning@nlnet.nl>
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org> <o492qg$a9k$1@gioia.aioe.org> <1ibo1gzmbqy5b.33119bupvh2q.dlg@40tude.net> <o4h57j$hhe$6@news.mixmin.net> <o4jr33$u80$1@news.mixmin.net> <7vpx5y09pu98.1sukl5d600sda$.dlg@40tude.net> <o4mllr$1tes$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: news.software.readers,alt.windows7.general
Organization: Aioe.org NNTP Server
Lines: 36
NNTP-Posting-Host: hfOAoZlqGeFs4SUbLxBJ8Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.8.2
X-Comment: If this still shows up, JJ is a veritable genius!
X-Received-Body-CRC: 2951548828
X-Received-Bytes: 2364