🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217158

Re: [Dialog] I need two X-No-Archive Headers

#217158
From: Gember Breuk
Date: Fri, 22 Feb 2008 14:31
43 lines
2756 bytes
On Thu, 21 Feb 2008 23:39:57 -0600, Sqwertz wrote:

> On Thu, 21 Feb 2008 22:49:22 -0500, Gember Breuk wrote:
[...]
>> Here is the script that makes it work:
>> 
>> Set the 'XNA: yes' header as usual. Compile and save the script to add
>> the 'XNA: banter' header next after the U-A.
>> 
>> -----------------------[copy below]---------------------------
>> 
>> program OnBeforeSendingMessage;
>> 
>> const
>>     ChangeHeader = 'User-Agent';
>>     AddHeader = 'X-No-Archive: banter';
> 
> Gee, thanks for thanks for taking the time to figure this out for
> me.  The script seems to be dependant on the User-Agent header -
> which I don't use, but I can easily change the extra XNA to fall
> after some other header.  I also already have a pretty lengthy
> OnBerforeSendingMessage(), but I should be able to integrate this
> pretty easily.

Yes, I modified a script for changing the U-A, so I just left it as the
"tag" to set the place to add the extra XNA. You can change it to any
existing header.

> Is there a good tutorial of sorts to learn more about Dialog
> scripting?  I have a lot of programming experience, and I
> understand that Dialog uses Delphi, but I have trouble with the
> Dialog-specific internal function/procedure names - are these
> documented somewhere?

Take a look at the "Scripting" section in the "Reference" part of "Help
Contents" in "Help" (F-1). It is pretty good for getting started.
 
> Thanks again.  I'll set it up tomorrow and report back.

You're welcome! I hope it works good for you. :-)

-- 
Gem
Technical Details
Message-ID: <fgnpafmsud5w$.dlg@blackholespam.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <j4luqhhg8ad0.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <fgnpafmsud5w$.dlg@blackholespam.net>
Subject: Re: [Dialog] I need two X-No-Archive Headers
Date: Fri, 22 Feb 2008 09:31:34 -0500
From: Gember Breuk <dumpspam@blackholespam.net>
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <j4luqhhg8ad0.dlg@sqwertz.com>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: Willekeurige orde
Lines: 43
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net vQq3LADvUBmRdtQhHhiyIA/s61ZiQZP6hkHAL2Ciw9NarS5ak=
Cancel-Lock: sha1:jzyMJVR0SKWyGIvB475JV9DxXTg=
User-Agent: 40tude_Dialog/2.0.15.84 (3929d516.370.346) PCLinuxOS 2007