🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
17 messages
17 total messages Started by Tech Zero Tue, 17 Feb 2004 23:34
[Dialog] How to set an "odd" header...
#143778
Author: Tech Zero
Date: Tue, 17 Feb 2004 23:34
16 lines
1675 bytes
Yes, it's a little OT for me...
But a friend of mine asked me, and after an hour of "playing with" 
Dialog I just can't seem to find where I can set the Distribution tag.

She needs to set "Distribution: fur" for messages posted to the FUR.* 
news groups in order to get past the Fur Filter-Bot, which is used to 
control spam in those groups. I though she could just set-up a 
different Indent for the fur groups, and then set the header in the 
properties of that Indent, but there's no distribution listed under the 
standard headers. Is there an easy way to ADD it?

I've already tried the X-Headers setup, but just add an illegal "X-" to 
the frond of the header...  }:8(

-- 
The Tech Zero, Maxwell Pollare - Not getting this 40tude Dialog...
Re: [Dialog] How to set an "odd" header...
#143794
Author: Jarrod Cifer
Date: Wed, 18 Feb 2004 05:19
28 lines
2426 bytes
Tech Zero, upon reaching nirvana, postulated: 

> I just can't seem to find where I can set the Distribution tag. 
> She needs to set "Distribution: fur" for messages posted to the FUR.* 
> news groups in order to get past the Fur Filter-Bot

A quick and dirty script to do this:

| program OnBeforeSendingMessage;
| 
| function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean;
| begin
| message.insert (1, 'Distribution: fur');
| 
| end;
| 
| begin
| end.

Disclaimer: This is very crude and should be refined to only work when
certain identity is active. Just paste it(sans quote character) into the
OnBeforeSendingMessage event script. Save, compile and then run it. The
script gurus should be here any minute now to post a real nice script for
doing this. I will post a request for the Distribution header to be added
to the next release.

-- 
J. Cifer
Re: [Dialog] How to set an "odd" header...
#144060
Author: Gnoopy
Date: Mon, 23 Feb 2004 16:06
61 lines
3237 bytes
Op Wed, 18 Feb 2004 06:19:56 +0100 schreef Jarrod Cifer:

> Tech Zero, upon reaching nirvana, postulated: 
> 
>> I just can't seem to find where I can set the Distribution tag. 
>> She needs to set "Distribution: fur" for messages posted to the FUR.* 
>> news groups in order to get past the Fur Filter-Bot
> 
> A quick and dirty script to do this:
> 
>| program OnBeforeSendingMessage;
>| 
>| function OnBeforeSendingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean):boolean;
>| begin
>| message.insert (1, 'Distribution: fur');
>| 
>| end;
>| 
>| begin
>| end.
> 
> Disclaimer: This is very crude and should be refined to only work when
> certain identity is active. Just paste it(sans quote character) into the
> OnBeforeSendingMessage event script. Save, compile and then run it. The
> script gurus should be here any minute now to post a real nice script for
> doing this. I will post a request for the Distribution header to be added
> to the next release.

maybe this one can help
it inserts the distribution-header only in a certain newsgroup...

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.software.readers';
           cDistribution = 'Distribution: fur';

     function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean; 
     var i : integer;
     begin 
       for i := 0 to message.count-1 do
       begin
         if copy(message.strings[i], 1, length(cNewsgroups)) = cNewsgroups
then
         begin
           if pos(cGroup, message.strings[i]) > 0 then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  
-- 
Greetz,

Gnoopy

On the other hand, are different fingers.
Re: [Dialog] How to set an "odd" header...
#144062
Author: Jarrod Cifer
Date: Mon, 23 Feb 2004 16:21
11 lines
1858 bytes
Gnoopy, upon reaching nirvana, postulated: 

> Op Wed, 18 Feb 2004 06:19:56 +0100 schreef Jarrod Cifer:

> maybe this one can help it inserts the distribution-header only in a
> certain newsgroup...

Thanks for the script! Do you mind if I add it to the Dialog script
repository? 
-- 
J. Cifer
Re: [Dialog] How to set an "odd" header...
#144065
Author: Tech Zero
Date: Mon, 23 Feb 2004 17:23
22 lines
1765 bytes
The voice of "Gnoopy" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> maybe this one can help
> it inserts the distribution-header only in a certain newsgroup...
> 
>      const cNewsgroups = 'Newsgroups: ';
>            cGroup = 'news.software.readers';
>            cDistribution = 'Distribution: fur';
 <snip>


I assume "cGroup" sets the groups...
So how would I set it for a range of groups?
The groups that need to have "Distribution: fur" set start with 
"FUR"...

I liked Jarrod Idea of just running the script for a set identity, or 
maybe I could set it based on the server?

-- 
The Tech Zero, Maxwell Pollare - Lost in the keys of Xnews...
Re: [Dialog] How to set an "odd" header...
#144076
Author: Gnoopy
Date: Mon, 23 Feb 2004 22:11
23 lines
2081 bytes
Op Mon, 23 Feb 2004 17:21:11 +0100 schreef Jarrod Cifer:

> Gnoopy, upon reaching nirvana, postulated: 
> 
>> Op Wed, 18 Feb 2004 06:19:56 +0100 schreef Jarrod Cifer:
> 
>> maybe this one can help it inserts the distribution-header only in a
>> certain newsgroup...
> 
> Thanks for the script! Do you mind if I add it to the Dialog script
> repository?

I didn't write this script myself, I just got it from somebody in another
newsgroup, so adding it to the Dialog script repository is fine with
*me*.  The OP didn't tell me there was a copyright on it, so, I suppose
it's alright with him to...

-- 
Greetz,

Gnoopy

So, what's on our mind tonight, honey?
Re: [Dialog] How to set an "odd" header...
#144077
Author: Gnoopy
Date: Mon, 23 Feb 2004 22:14
29 lines
2333 bytes
Op 23 Feb 2004 17:23:24 GMT schreef Tech Zero:

> The voice of "Gnoopy" drifted in on the cyber-winds, 
> from the sea of virtual chaos...
> 
>> maybe this one can help
>> it inserts the distribution-header only in a certain newsgroup...
>> 
>>      const cNewsgroups = 'Newsgroups: ';
>>            cGroup = 'news.software.readers';
>>            cDistribution = 'Distribution: fur';
>  <snip>
> 
> 
> I assume "cGroup" sets the groups...
> So how would I set it for a range of groups?
> The groups that need to have "Distribution: fur" set start with 
> "FUR"...

as I mentioned before, I didn't write the script myself, but I suppose that
if you change the assign 'FUR' to cGroup, this add the Distribution
header to all newsgroups containing the word FUR in it

-- 
Greetz,

Gnoopy

May your bugs be code-free
Re: [Dialog] How to set an "odd" header...
#144078
Author: Gnoopy
Date: Mon, 23 Feb 2004 22:17
18 lines
1999 bytes
On Mon, 23 Feb 2004 22:14:59 GMT I wrote:

8<

> 
> as I mentioned before, I didn't write the script myself, but I suppose that
> if you change the assign 'FUR' to cGroup, this add the Distribution
> header to all newsgroups containing the word FUR in it

this is a test of what I mentioned above
I assigned 'news' to cGroup en 'Distribution: test' to cDistribution
you can see the result yourself ;-)
-- 
Greetz,

Gnoopy

LINUX - Because rebooting is for adding new hardware
Re: [Dialog] How to set an "odd" header...
#144079
Author: Gnoopy
Date: Mon, 23 Feb 2004 22:19
19 lines
2101 bytes
On Mon, 23 Feb 2004 22:14:59 GMT I wrote:

8<

 
> as I mentioned before, I didn't write the script myself, but I suppose that
> if you change the assign 'FUR' to cGroup, this add the Distribution
> header to all newsgroups containing the word FUR in it

this is a test of what I mentioned above
I assigned 'news' to cGroup en 'Distribution: world' to cDistribution
you can see the result yourself ;-)
-- 
Greetz,

Gnoopy

There are two ways to make a living in this world, either you have a jump
shot or you sell crack rock. -- Notorious B.I.G.
Re: [Dialog] How to set an "odd" header...
#144126
Author: Wago
Date: Tue, 24 Feb 2004 20:14
24 lines
2323 bytes
> Op 17 Feb 2004 23:34:50 GMT, tikte Tech Zero:

> Yes, it's a little OT for me...
> But a friend of mine asked me, and after an hour of "playing with" 
> Dialog I just can't seem to find where I can set the Distribution tag.
> 
> She needs to set "Distribution: fur" for messages posted to the FUR.* 
> news groups in order to get past the Fur Filter-Bot, which is used to 
> control spam in those groups. I though she could just set-up a 
> different Indent for the fur groups, and then set the header in the 
> properties of that Indent, but there's no distribution listed under the 
> standard headers. Is there an easy way to ADD it?
> 
> I've already tried the X-Headers setup, but just add an illegal "X-" to 
> the frond of the header...  }:8(

Go to setup/servers&identities => X-headers. Put there anything you want.
In my headers you wil see: X-status.
-- 
Greetz,

Wago
______________________________________________________________
Een verstopt toilet dat echt niet te vinden is, is nooit grappig.
Re: [Dialog] How to set an "odd" header...
#144130
Author: Tech Zero
Date: Tue, 24 Feb 2004 22:03
22 lines
1781 bytes
The voice of "Wago" drifted in on the cyber-winds, 
from the sea of virtual chaos...

>> She needs to set "Distribution: fur" for messages posted to the
>> FUR.* news groups in order to get past the Fur Filter-Bot, which
>> is used to control spam in those groups. I though she could just
>> set-up a different Indent for the fur groups, and then set the
>> header in the properties of that Indent, but there's no
>> distribution listed under the standard headers. Is there an easy
>> way to ADD it? 
>> 
>> I've already tried the X-Headers setup, but just adds an illegal
>> "X-" to the frond of the header...  }:8(
> 
> Go to setup/servers&identities => X-headers. Put there anything
> you want. In my headers you wil see: X-status.


You can't read... "Distribution" isn't an X-header!

-- 
The Tech Zero, Maxwell Pollare - Lost in the keys of Xnews...
Re: [Dialog] How to set an "odd" header...
#144132
Author: Tech Zero
Date: Tue, 24 Feb 2004 22:11
21 lines
1908 bytes
The voice of "Gnoopy" drifted in on the cyber-winds, 
from the sea of virtual chaos...

>> I assume "cGroup" sets the groups...
>> So how would I set it for a range of groups?
>> The groups that need to have "Distribution: fur" set start with 
>> "FUR"...
> 
> as I mentioned before, I didn't write the script myself, but I
> suppose that if you change the assign 'FUR' to cGroup, this add
> the Distribution header to all newsgroups containing the word FUR
> in it 

It was posted 5 hours after I made reply post...

Assign 'FUR' to cGroup wouldn't work, because it catches more groups 
then those that start with "FUR", just like 'news' catches more then 
just this group. It's not an adequate solution, but thanks anyways.

-- 
The Tech Zero, Maxwell Pollare - Lost in the keys of Xnews...
Re: [Dialog] How to set an "odd" header...
#144136
Author: Wago
Date: Wed, 25 Feb 2004 00:44
31 lines
2529 bytes
> Op 24 Feb 2004 22:03:22 GMT, tikte Tech Zero:

>> The voice of "Wago" drifted in on the cyber-winds, 
>> from the sea of virtual chaos...
 
>>> She needs to set "Distribution: fur" for messages posted to the
>>> FUR.* news groups in order to get past the Fur Filter-Bot, which
>>> is used to control spam in those groups. I though she could just
>>> set-up a different Indent for the fur groups, and then set the
>>> header in the properties of that Indent, but there's no
>>> distribution listed under the standard headers. Is there an easy
>>> way to ADD it? 
>>> 
>>> I've already tried the X-Headers setup, but just adds an illegal
>>> "X-" to the frond of the header...  }:8(

>> Go to setup/servers&identities => X-headers. Put there anything
>> you want. In my headers you wil see: X-status.
 
> You can't read... "Distribution" isn't an X-header!

I can read, but i did not notice that it is impossible to ad whiteout X-.
Sorry that i can not help. :)

-- 
Greetz,

Wago
______________________________________________________________
Met je brillenkoker teruggaan omdat je bril niet gaar wordt, is nooit
grappig.
Re: [Dialog] How to set an "odd" header...
#144156
Author: Gnoopy
Date: Wed, 25 Feb 2004 09:47
51 lines
2960 bytes
Op 24 Feb 2004 22:11:59 GMT schreef Tech Zero:


> It was posted 5 hours after I made reply post...

now, your reply post is even longer ago...
 
> Assign 'FUR' to cGroup wouldn't work, because it catches more groups 
> then those that start with "FUR", just like 'news' catches more then 
> just this group. It's not an adequate solution, but thanks anyways.

we don't give up this easily (at least, I don't)
let give this script a chance

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.';
	   nGroup = '.news.'; // we don't want this into the name of the newsgroup
           cDistribution = 'Distribution: fur';

     function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean; 
     var i : integer;
     begin 
       for i := 0 to message.count-1 do
       begin
         if copy(message.strings[i], 1, length(cNewsgroups)) = cNewsgroups
then
         begin
           if (pos(cGroup, message.strings[i]) > 0) and (pos(cGroup,
message.string[i]) = 0) then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  

(This script is tested in this message)


-- 
Greetz,

Gnoopy

¿para quen traballas? para o DEMO. (o demo quere entropía (H) e controla a
termodinámica); rm -rf /; make 100 pipe(r)s;
Re: [Dialog] How to set an "odd" header...
#144157
Author: Gnoopy
Date: Wed, 25 Feb 2004 09:52
71 lines
4116 bytes
Op 24 Feb 2004 22:11:59 GMT schreef Tech Zero:

> Path: pheme.telenet-ops.be!ossa.telenet-ops.be!feed1.news.be.easynet.net!skynet.be!fu-berlin.de!uni-berlin.de!209.115.158.219!not-for-mail
> From: Tech Zero <spamnet-feb@dragonfur.ca>
> Newsgroups: news.software.readers
> Subject: Re: [Dialog] How to set an "odd" header...
> Date: 24 Feb 2004 22:11:59 GMT
> Lines: 21
> Message-ID: <Xns94999ABE3B788ZeroOne@news.individual.net>
> References: <Xns9492A8C773173ZeroOne@news.individual.net> <0Nydne7ZLslSaK_d4p2dnA@giganews.com> <pl4z8pkp67uw.1w1b60rml62f8$.dlg@40tude.net> <Xns949869CFD47D7ZeroOne@news.individual.net> <x4aobdjl9uer.1pmk07u31h857.dlg@40tude.net>
> NNTP-Posting-Host: 209.115.158.219
> X-Trace: news.uni-berlin.de 1077660719 51172163 I 209.115.158.219 ([139626])
> User-Agent: Xnews/06.01.10
> Xref: ossa.telenet-ops.be news.software.readers:138228
> 
> The voice of "Gnoopy" drifted in on the cyber-winds, 
> from the sea of virtual chaos...
> 
>>> I assume "cGroup" sets the groups...
>>> So how would I set it for a range of groups?
>>> The groups that need to have "Distribution: fur" set start with 
>>> "FUR"...
>> 
>> as I mentioned before, I didn't write the script myself, but I
>> suppose that if you change the assign 'FUR' to cGroup, this add
>> the Distribution header to all newsgroups containing the word FUR
>> in it 
> 
> It was posted 5 hours after I made reply post...
> 
> Assign 'FUR' to cGroup wouldn't work, because it catches more groups 
> then those that start with "FUR", just like 'news' catches more then 
> just this group. It's not an adequate solution, but thanks anyways.

we don't give up this easily (at least, I don't)
let give this script a chance

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.';
	   nGroup = '.news.'; // we don't want this into the name of the newsgroup
           cDistribution = 'Distribution: fur';

     function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean; 
     var i : integer;
     begin 
       for i := 0 to message.count-1 do
       begin
         if copy(message.strings[i], 1, length(cNewsgroups)) = cNewsgroups
then
         begin
           if (pos(cGroup, message.strings[i]) > 0) and (pos(nGroup,
message.string[i]) = 0) then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  

(This script is tested in this message)
-- 
Greetz,

Gnoopy

E Pluribus Unix
Re: [Dialog] How to set an "odd" header...
#144158
Author: Gnoopy
Date: Wed, 25 Feb 2004 09:53
58 lines
3325 bytes
Op 24 Feb 2004 22:11:59 GMT schreef Tech Zero:

> The voice of "Gnoopy" drifted in on the cyber-winds, 
> from the sea of virtual chaos...
> 
>>> I assume "cGroup" sets the groups...
>>> So how would I set it for a range of groups?
>>> The groups that need to have "Distribution: fur" set start with 
>>> "FUR"...
>> 
>> as I mentioned before, I didn't write the script myself, but I
>> suppose that if you change the assign 'FUR' to cGroup, this add
>> the Distribution header to all newsgroups containing the word FUR
>> in it 
> 
> It was posted 5 hours after I made reply post...
> 
> Assign 'FUR' to cGroup wouldn't work, because it catches more groups 
> then those that start with "FUR", just like 'news' catches more then 
> just this group. It's not an adequate solution, but thanks anyways.

we don't give up this easily (at least, I don't)
let give this script a chance

     const cNewsgroups = 'Newsgroups: ';
           cGroup = 'news.';
	   nGroup = '.news.'; // we don't want this into the name of the newsgroup
           cDistribution = 'Distribution: world';

     function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean; 
     var i : integer;
     begin 
       for i := 0 to message.count-1 do
       begin
         if copy(message.strings[i], 1, length(cNewsgroups)) = cNewsgroups
then
         begin
           if (pos(cGroup, message.strings[i]) > 0) and (pos(nGroup,
message.string[i]) = 0) then
           begin
             message.insert (1, cDistribution);
             break;
           end;
         end;
       end;
     end;
     
     begin
     end.  

(This script is tested in this message)
-- 
Greetz,

Gnoopy

"Bleeeeeeeehhhhhhh!!! bleeeeeeeehhhhhhhhh!!! Goblin! Goblin!" - a goblin
Re: [Dialog] How to set an "odd" header...
#144220
Author: OB1
Date: Fri, 27 Feb 2004 21:08
19 lines
2092 bytes
On 17 Feb 2004 23:34:50 GMT, Tech Zero wrote:

> She needs to set "Distribution: fur" for messages posted to the FUR.* 
> news groups in order to get past the Fur Filter-Bot, which is used to 
> control spam in those groups.

I wrote a script for this, that used a txt file with a list of groups in it
for which to add the 'Distribution: local'-header, and was working on
adding the feature of adding any custom header to any list of groups.
When a message got sent, the Newsgroups-header was compared to the
textfile, and when it matched a group from the list, the custom header was
added.

Too bad i forgot to backup my scripts when i formatted my disk last week to
reinstall Windows, and never got round to sending it in for Wiki.

I'll start rewriting it one of these days, if i find the time.

OB1
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads