🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217225

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

#217225
From: MikeV06
Date: Sat, 23 Feb 2008 18:17
65 lines
2881 bytes
On Fri, 22 Feb 2008 15:51:36 -0500, Oliver Cromm wrote:

> Here's what should do the job in a minimal way. It should also answer
> MikeV06's question about combining different functionalities in
> OnSendingMessage: the best way is using include.
> 
> In CustomScripts, create a new script called "Include_AddAnyHeader".
> Paste in the following (unfold the procedure line):
> 
> --------------
> procedure AddAnyHeader(AddHeader:String; var Message:TStringlist;
> IsEmail:Boolean);
> var i: integer;
> begin
>    If not IsEmail then begin
>       i := 1;
>       while Message[i] <> '' do 
>             i := i+1;
>       Message.insert(i, AddHeader);
>    end
> end;
> --------------
> 
> Save, *don't* compile.

I also moved the box_quotes script, deleted program ... into custom scripts
without compiling.

> For example, my script now looks like this:
> 
> --------------
> program OnBeforeSendingMessage;
> 
>   {$I CancelLock_include.ds}
>   {$I Include_AddAnyHeader.ds}   
> 
> function OnBeforeSendingMessage(var Message: TStringlist; Servername:
> string; IsEmail: boolean):boolean;
> begin
>   result:=true;
> 
>   CLMain_CancelLock (Message, IsEmail);

I replaced the above with an insert_boxquotes.

>   AddAnyHeader ('X-CustomScript: AddAnyHeader', Message, IsEmail);
>   AddAnyHeader ('X-ScriptMadeBy: me, myself & I', Message, IsEmail);
>   
> end;
> 
> begin
> end.
> --------------

This indeed is much cleaner. I will be curious to see what this looks like
after it is posted.

Does a way exist to test this without actually sending it?

Do you know what is the purpose of the Archive: header?

Thank you for the suggestions. We will see what happens now!

Mike
Technical Details
Message-ID: <o99j9yxj2h8y.dlg@mycomputer06.invalid>
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!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.suddenlink.net!not-for-mail
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <1cq6okvpxxuxn$.dlg@mid.crommatograph.info> <iwlennvzcrnu.dlg@mid.crommatograph.info>

Show Full Headers
Complete Article Headers
Message-ID: <o99j9yxj2h8y.dlg@mycomputer06.invalid>
Subject: Re: [Dialog] I need two X-No-Archive Headers
Date: Sat, 23 Feb 2008 12:17:40 -0600
From: MikeV06 <me@mycomputer06.invalid>
References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> <1cfxfs0ud4v2i.dlg@blackholespam.net> <1cq6okvpxxuxn$.dlg@mid.crommatograph.info> <iwlennvzcrnu.dlg@mid.crommatograph.info>
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!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.suddenlink.net!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: None
Archive: No
X-No-Archive: Yes
Lines: 65
NNTP-Posting-Host: 74.194.81.60
X-Complaints-To: abuse@suddenlink.net