Article View: news.software.readers
Article #217135Re: [Dialog] I need two X-No-Archive Headers
From: Gember Breuk
Date: Fri, 22 Feb 2008 03:49
Date: Fri, 22 Feb 2008 03:49
68 lines
2891 bytes
2891 bytes
On Thu, 21 Feb 2008 13:17:08 -0600, Sqwertz wrote:
> On Thu, 21 Feb 2008 10:07:36 -0500, Gember Breuk wrote:
>
>> On Wed, 20 Feb 2008 16:07:50 -0600, Sqwertz wrote:
>>
>>> In an effort to keep my posts off of as many commercial sites as
>>> I can, I need to use an additional "X-No-Archive:" header that
>>> says "banter" instead of just the customary "yes" option.
>>>
>>> Is there any way to have two XNA headers in Dialog?
>>
>> I think it can be done with a script, but I haven't tried. I'll see what
>> I can do.
>
> I looked at the script library but I didn't see anything that was
> straight-forward enough for me to modify.
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';
procedure ChangeAnyHeader(Message:TStringlist;IsEmail:boolean);
var i:integer;
s:string;
begin
s := Message.text;
i := 1;
while (Message.Strings[i]<>'') do
begin
if pos(ChangeHeader,Message.Strings[i])<>0 then
begin
Message.Strings[i+1] := AddHeader;
s := Message.text;
end;
i := i + 1;
end; {end of while}
message.text := s;
end;
//The next line should not wrap from 'function' to 'boolean):Boolean;'
function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):Boolean;
begin
ChangeAnyHeader(Message,IsEmail);
result:=true;
end;
begin
end.
-----------------------[copy above]---------------------------
--
Gem
Technical Details
Message-ID:
<1cfxfs0ud4v2i.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!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com>Show Full Headers
Complete Article Headers
Message-ID: <1cfxfs0ud4v2i.dlg@blackholespam.net> Subject: Re: [Dialog] I need two X-No-Archive Headers Date: Thu, 21 Feb 2008 22:49:22 -0500 From: Gember Breuk <dumpspam@blackholespam.net> References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.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!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: Willekeurige orde Lines: 68 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net KhYaEpCGzbx1BJ3+pdpI6A1nvgXj8lirCxmyipT1RUbXDMF8c= Cancel-Lock: sha1:Imuj+vQqthuD2gvqDcyO5KshO40= User-Agent: 40tude_Dialog/2.0.15.84 (0199d924.370.346) PCLinuxOS 2007