🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #225026

[Dialog] Scripting help

#225026
From: Ted S.
Date: Sat, 23 Aug 2008 16:16
30 lines
2205 bytes
Dialog's help for scripting includes the following:

<snip>
OnBeforeSendingMessage 
Called from a worker thread right before a message is sent to a SMTP or
NNTP server. You could change the contents or formatting of the message
from within this script. 
</snip>

This is something I've been wanting to take advantage of for a while.
But I can't get even a simple script to work.  I tried:

<snip>
if (Subject: packfans)
function StringReplace( S, User-Agent: 40tude_Dialog/2.0.15.1,
User-Agent: FavreMail Express, Version 4: string; Flags: TReplaceFlags):
string; 
</snip>

However, I get an error message on trying to run the script about the if
block.  All I did was to add the if and function blocks between what
Dialog already had in there.

I have no idea what to do, and reading Dialog's help page on scripts is
like reading gibberish.

-- 
Ted S.
fedya at hughes dot net
Now blogging at http://justacineast.blogspot.com
Technical Details
Message-ID: <yb8v1163a8fo$.dlg@justacineast.motzarella.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.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <yb8v1163a8fo$.dlg@justacineast.motzarella.org>
Subject: [Dialog] Scripting help
Date: Sat, 23 Aug 2008 12:16:58 -0400
From: "Ted S." <fedya@hughes.spam>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 30
Reply-To: fedya@hughes.net
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: reader.motzarella.org
 U2FsdGVkX1/HD29JOiKGTwXfpyDs1s2HOvND91+rRwtUdsU2VT0cOhYFEhyJKgyo91Y1nIj1MaOPN44grbEL4vHBi7UF4zS7uJKjw43Oac96QezDojj2268dFq+Orlh+E2dd9tzQ/2o=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sat, 23 Aug 2008 16:17:24 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1+kJ8FFKkTIicqGE+YOcnZbRNa1T2NLfl8=
Cancel-Lock: sha1:exKhYgUrLmjGDVwM7AlAo2XQs6k=
User-Agent: 40tude_Dialog/2.0.15.1 Hamster/2.1.0.11