🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261698

Re: Request help with 40tude dialog program syntax

#261698
From: Stijn De Jong
Date: Mon, 09 Jan 2017 02:48
37 lines
2681 bytes
On Sun, 8 Jan 2017 20:32:35 +0700, you wrote:

> Whoops. That line (at start of OnBeforeSendingMessage) should have been:
> 
>   GetIdentities(message, servername, true, FromIdentity,
>     NewsgroupIdentity, ServerIdentity);
> 
> i.e. the third parameter should be `true` instead of `isEmail`, so that the
> function works for both newsgroup and email message. Previously, it won't
> work if the message being sent is an email.
> 
> I hope that's the last of my goofs.
> 
> PS) Please post the script to PasteBin instead of newsgroup, because long
> lines got broken into separate lines. It can cause syntax error when
> compiled if the script was copy+pasted from the newsgroup message.

oh oh 

I just tested the procedure with and without that line and I 
was surprised that the new line seems to have broken something.

I had to put back the old line to get the program to work again.

In both tests, this was the set of options:
ForEmail := false;   
ForNewsgroup := true;

This line worked fine to remove and add desired headers:


GetIdentities(message, servername, isEmail, FromIdentity, NewsgroupIdentity, ServerIdentity);

Changing just to this line caused nothing to happen:
GetIdentities(message, servername, true, FromIdentity, NewsgroupIdentity, ServerIdentity); 

So I just now went back to the original call.
Technical Details
Message-ID: <o4utl8$1g1t$1@gioia.aioe.org>
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: <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> <o4mmls$1ufs$1@gioia.aioe.org> <o4mp2u$1mp$1@gioia.aioe.org> <o4mqdl$3dn$1@gioia.aioe.org> <18a15xlqpx8bu$.p7s6f5qnpimv$.dlg@40tude.net> <o4p63d$1jiv$1@gioia.aioe.org> <2nmhjmd7yn5z.7aee9qvl2s4h.dlg@40tude.net> <o4rrp6$1uh9$1@gioia.aioe.org> <o4s14o$80h$1@gioia.aioe.org> <raqqb2wh4vt$.1osst5ylm2z2k$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <o4utl8$1g1t$1@gioia.aioe.org>
Subject: Re: Request help with 40tude dialog program syntax
Date: Mon, 09 Jan 2017 02:48:09 +0000
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> <o4mmls$1ufs$1@gioia.aioe.org> <o4mp2u$1mp$1@gioia.aioe.org> <o4mqdl$3dn$1@gioia.aioe.org> <18a15xlqpx8bu$.p7s6f5qnpimv$.dlg@40tude.net> <o4p63d$1jiv$1@gioia.aioe.org> <2nmhjmd7yn5z.7aee9qvl2s4h.dlg@40tude.net> <o4rrp6$1uh9$1@gioia.aioe.org> <o4s14o$80h$1@gioia.aioe.org> <raqqb2wh4vt$.1osst5ylm2z2k$.dlg@40tude.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
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 37
NNTP-Posting-Host: hfOAoZlqGeFs4SUbLxBJ8Q.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.8.2
X-Received-Body-CRC: 1884766031
X-Received-Bytes: 2646