Thread View: news.software.readers
63 messages
63 total messages
Page 1 of 2
Started by Sqwertz
Wed, 20 Feb 2008 22:07
Page 1 of 2 • 63 total messages
[Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Wed, 20 Feb 2008 22:07
Date: Wed, 20 Feb 2008 22:07
7 lines
1530 bytes
1530 bytes
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? -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: badgolferman
Date: Thu, 21 Feb 2008 03:55
Date: Thu, 21 Feb 2008 03:55
11 lines
1593 bytes
1593 bytes
Sqwertz, 2/20/2008,5:07:50 PM, 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? > > -sw If you decide to give Xananews a try you can easily add extra headers.
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Thu, 21 Feb 2008 07:01
Date: Thu, 21 Feb 2008 07:01
15 lines
1897 bytes
1897 bytes
On Thu, 21 Feb 2008 03:55:06 GMT, badgolferman wrote: > Sqwertz, 2/20/2008,5:07:50 PM, 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? > > If you decide to give Xananews a try you can easily add extra headers. I guess you overlooked the "[Dialog]" in the subject of my post. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Thu, 21 Feb 2008 15:07
Date: Thu, 21 Feb 2008 15:07
13 lines
1472 bytes
1472 bytes
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. -- Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Thu, 21 Feb 2008 15:40
Date: Thu, 21 Feb 2008 15:40
14 lines
1648 bytes
1648 bytes
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. What it is that you're trying to hide? Why are you concerned about your posts being archived? -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Marco Schmidt
Date: Thu, 21 Feb 2008 18:00
Date: Thu, 21 Feb 2008 18:00
8 lines
1216 bytes
1216 bytes
Sqwertz: >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. What site, institution or software understands and honors anything other than "yes" as a value of X-No-Archive?
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Thu, 21 Feb 2008 19:08
Date: Thu, 21 Feb 2008 19:08
15 lines
1882 bytes
1882 bytes
On Thu, 21 Feb 2008 09:40:59 -0600, Dan C 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. > > What it is that you're trying to hide? > > Why are you concerned about your posts being archived? Why are you concerned about why I'd like to do this? -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Thu, 21 Feb 2008 19:10
Date: Thu, 21 Feb 2008 19:10
16 lines
1991 bytes
1991 bytes
On Thu, 21 Feb 2008 19:00:42 +0100, Marco Schmidt wrote: > Sqwertz: > >>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. > > What site, institution or software understands and honors anything > other than "yes" as a value of X-No-Archive? Foobanter.com is an advertising-supported Web <-> Usenet gateway that honors "XNA: banter" as a way to exclude your posts from that site. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Thu, 21 Feb 2008 19:17
Date: Thu, 21 Feb 2008 19:17
17 lines
1981 bytes
1981 bytes
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. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Thu, 21 Feb 2008 19:44
Date: Thu, 21 Feb 2008 19:44
22 lines
2085 bytes
2085 bytes
On Thu, 21 Feb 2008 19:08:12 +0000, 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. >> What it is that you're trying to hide? >> Why are you concerned about your posts being archived? > Why are you concerned about why I'd like to do this? Well, you didn't answer (either) of my questions, but I'll answer yours: Because I dislike trolls and spammers, and using the XNA header is pretty much a sure-fire indicator of such a lowlife. Now, would you answer my questions? -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Thu, 21 Feb 2008 21:07
Date: Thu, 21 Feb 2008 21:07
23 lines
1909 bytes
1909 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. I got caught up in some work for pay, but I haven't forgotten about you. I'll work on it in a little while :-) -- Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Oliver Cromm
Date: Thu, 21 Feb 2008 23:33
Date: Thu, 21 Feb 2008 23:33
17 lines
1741 bytes
1741 bytes
* Marco Schmidt wrote: > Sqwertz: > >>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. > > What site, institution or software understands and honors anything > other than "yes" as a value of X-No-Archive? I heard before that Google honors the presence of a XNA-header, notwithstanding the contents. So if that's (still) true, "no" or "banter" should work for them just the same as "yes". -- *Multitasking* /v./ Screwing up several things at once
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 00:10
Date: Fri, 22 Feb 2008 00:10
37 lines
2872 bytes
2872 bytes
On Thu, 21 Feb 2008 13:44:21 -0600, Dan C wrote: > On Thu, 21 Feb 2008 19:08:12 +0000, 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. > >>> What it is that you're trying to hide? >>> Why are you concerned about your posts being archived? > >> Why are you concerned about why I'd like to do this? > > Well, you didn't answer (either) of my questions, but I'll answer yours: > > Because I dislike trolls and spammers, and using the XNA header is pretty > much a sure-fire indicator of such a lowlife. Do you have some statistics on that? All the spam I see from Google - which comprises 95+% of the spam out there, does not include XNA. As for trolls - from what I've seen lately they always use different nyms to post with and couldn't care less about XNA. The only troll here is you, attempting to troll me into a pointless argument about the reasons for XNA. I didn't just start using USENET, ya know. And I think we've already been through this before - with you ending up the loser. > Now, would you answer my questions? Not until you can come up with a good explanation as to why you even care. And then you'd have to apologize for implying that I'm a troll and spammer. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 00:19
Date: Fri, 22 Feb 2008 00:19
33 lines
2607 bytes
2607 bytes
On Thu, 21 Feb 2008 18:33:27 -0500, Oliver Cromm wrote: > * Marco Schmidt wrote: > >> Sqwertz: >> >>>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. >> >> What site, institution or software understands and honors anything >> other than "yes" as a value of X-No-Archive? > > I heard before that Google honors the presence of a XNA-header, > notwithstanding the contents. So if that's (still) true, "no" or > "banter" should work for them just the same as "yes". Duh. I think I reported that here before - I had just forgot that I had tested it. Looking at a post that I did with XNA:+ Banter yesterday, sure enough. Google will expire the message on the 27th http://groups.google.com/group/rec.food.cooking/msg/f8883e5639cafe60 Ideally I'd like for Google not to carry my posts at all considering how they've taken to trashing USENET, but I'll have to live with the 10-day rule. Thanks for the reminder. But I'd still like to know how to use more than one XNA header... -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Marco Schmidt
Date: Fri, 22 Feb 2008 00:20
Date: Fri, 22 Feb 2008 00:20
18 lines
1389 bytes
1389 bytes
Sqwertz: >Foobanter.com is an advertising-supported Web <-> Usenet gateway >that honors "XNA: banter" as a way to exclude your posts from >that site. OK, thanks. I've heard of both |X-No-Html: yes and |Distribution: usenet to express "do not use this article on the Web / outside of regular Usenet distribution channels". Third time's the charm! :)
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 03:28
Date: Fri, 22 Feb 2008 03:28
23 lines
1909 bytes
1909 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. Ok, I make this post to show it works. I will put the script in the next one with no XNA's... -- Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 03:39
Date: Fri, 22 Feb 2008 03:39
66 lines
2905 bytes
2905 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:
-----------------------[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]---------------------------
Set the 'XNA: yes' as usual. Compile and save the script to add the 'XNA: banter' header next after the U-A.
--
Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 03:47
Date: Fri, 22 Feb 2008 03:47
70 lines
2921 bytes
2921 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
Re: [Dialog] I need two X-No-Archive Headers
Author: 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
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 04:18
Date: Fri, 22 Feb 2008 04:18
7 lines
1406 bytes
1406 bytes
On Thu, 21 Feb 2008 22:49:22 -0500, Gember Breuk wrote: My apologies for any multiple posts. I was getting an error and didn't know they went out. I am sorry if you get them. -- Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Fri, 22 Feb 2008 05:21
Date: Fri, 22 Feb 2008 05:21
69 lines
4163 bytes
4163 bytes
On Thu, 21 Feb 2008 18:10:25 -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. >>>> What it is that you're trying to hide? Why are you concerned about >>>> your posts being archived? >>> Why are you concerned about why I'd like to do this? >> Well, you didn't answer (either) of my questions, but I'll answer >> yours: >> Because I dislike trolls and spammers, and using the XNA header is >> pretty much a sure-fire indicator of such a lowlife. > Do you have some statistics on that? All the spam I see from Google - > which comprises 95+% of the spam out there, does not include XNA. Nope, no statistics. Just solid experience from years on Usenet, and my statement above about what the XNA indicates is quite accurate. > As for trolls - from what I've seen lately they always use different > nyms to post with and couldn't care less about XNA. Not all trolls change nyms. Some don't change, but use XNA. > The only troll here is you, attempting to troll me into a pointless > argument about the reasons for XNA. I didn't just start using USENET, > ya know. And I think we've already been through this before - with you > ending up the loser. I'm not attempting to troll anything, and you're also wrong about having done this before (with me, at least). Perhaps someone else did call you out about it once, and you attempted to twist your way out of answering that time, too. I can see where you'd get confused about that. >> Now, would you answer my questions? > Not until you can come up with a good explanation as to why you even > care. I already gave that, above. In case you forgot, it's because it indicates that the poster is a troll and/or has something to hide, and I dislike that kind of behavior. How about trying again to answer my question, without trying to dodge it this time? > And then you'd have to apologize for implying that I'm a troll and > spammer. No, I wouldn't. In fact, after a quick check on your posting history, it's become quite clear that that's *EXACTLY* what you are. Basically another kiddy flooder who thinks it's "kewl" to spew random drivel all over Usenet. Don't believe me? Take a quick look at the posting history yourself: <http://groups.google.com/groups?as_q=&num=10&scoring=r&hl=en&as_epq=&as_oq=&as_eq=&as_ugroup=&as_usubject=&as_uauthors=Sqwertz&lr=&as_qdr=&as_drrb=b&as_mind=1&as_minm=1&as_miny=2007&as_maxd=21&as_maxm=2&as_maxy=2008&safe=off> Just what I thought. Bugger off, punk. -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 05:39
Date: Fri, 22 Feb 2008 05:39
66 lines
4243 bytes
4243 bytes
On Thu, 21 Feb 2008 22:49:22 -0500, Gember Breuk wrote: > Path: newssvr21.news.prodigy.net!newsdbm04.news.prodigy.net!newsdst01.news.prodigy.net!prodigy.com!newscon04.news.prodigy.net!prodigy.net!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail > From: Gember Breuk <dumpspam@blackholespam.net> > Newsgroups: news.software.readers > Subject: Re: [Dialog] I need two X-No-Archive Headers > Date: Thu, 21 Feb 2008 22:49:22 -0500 > Organization: Willekeurige orde > Lines: 68 > Message-ID: <1cfxfs0ud4v2i.dlg@blackholespam.net> > References: <40lhz7pt2tqo.dlg@sqwertz.com> <1td7qgn0qa5kx$.dlg@blackholespam.net> <1l5i97dcyjakx$.dlg@sqwertz.com> > 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 > Xref: prodigy.net news.software.readers:264283 > > 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'; 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. 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? Thanks again. I'll set it up tomorrow and report back. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 05:59
Date: Fri, 22 Feb 2008 05:59
49 lines
3839 bytes
3839 bytes
On Thu, 21 Feb 2008 23:21:09 -0600, Dan C wrote: > I already gave that, above. In case you forgot, it's because it indicates > that the poster is a troll and/or has something to hide, and I dislike > that kind of behavior. I really don't give a shit what kind of behavior you do or do not dislike. I do know that I'm not contributing to your implied behavior, and I don't have to explain myself every time this subject comes up. I've done enough troll-hunting to know your theories are bogus. And if you're relying on that, then you don't get an explanation from me. If anybody questions my posts, they can email me at the easily deciphered email address in my posts. I'm sorry - I don't see *your* email address in your posts... You must be a troll! >> And then you'd have to apologize for implying that I'm a troll and >> spammer. > > No, I wouldn't. In fact, after a quick check on your posting history, > it's become quite clear that that's *EXACTLY* what you are. Basically > another kiddy flooder who thinks it's "kewl" to spew random drivel all > over Usenet. Don't believe me? Take a quick look at the posting history > yourself: > > <http://groups.google.com/groups?as_q=&num=10&scoring=r&hl=en&as_epq=&as_oq=&as_eq=&as_ugroup=&as_usubject=&as_uauthors=Sqwertz&lr=&as_qdr=&as_drrb=b&as_mind=1&as_minm=1&as_miny=2007&as_maxd=21&as_maxm=2&as_maxy=2008&safe=off> Cute. Where did you dig up that crap? I didn't post most of that stuff That's obviously part of some splorge using my posting address and from IP's that are obviously not mine. I recognize the subjects as threads which I've been involved in, but the text is obviously part of some sort of rogue revenge bot aimed at news.admin.net-abuse.email. Surely you've been around Usenet (so you claim) long enough to recognize this stuff when you see it. Try doing a search omitting NANAE and get your facts straight. You might be interested to see your own splorge: <http://groups.google.com/groups/search?hl=en&ie=UTF-8&q=author%3Ayoumustbejoking%40lan.invalid+group%3Anews.admin.*&qt_s=Search> Look familiar? Asswipe. Now please piss off, you pathetic little wanker. You clearly have nothing to useful (or intelligent) to contribute to this thread. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 14:31
Date: Fri, 22 Feb 2008 14:31
43 lines
2756 bytes
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
Re: [Dialog] I need two X-No-Archive Headers
Author: MikeV06
Date: Fri, 22 Feb 2008 17:19
Date: Fri, 22 Feb 2008 17:19
116 lines
4060 bytes
4060 bytes
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';
>
> 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]---------------------------
Nice script!
What is the best way to combine (insert, whatever) your script with an
existing script for the OnBeforeSendingMessage event?
Obviously, one would not duplicate the program heading since the existing
script already has one.
program OnBeforeSendingMessage;
//script to automagically insert Boxquotes into a message before being sent
//you will not see the result inside the editor-window but only in the
transmitted article
//box: or box_o:
//Example
//-
//aslkdjl aksdj lkajsd lkjalsdkj lakj sadalksjd lkjasldkj lakjd
//-
One most likely can just add the const and procedure at the bottom of the
existing script before the terminating clauses.
begin
end.
What I am not quite clear on is how to handle your function with the
existing driving function:
function OnBeforeSendingMessage(
var Message : TStringlist;
const Servername : String;
const IsEmail : Boolean
) : Boolean;
begin
//
// if result is set to false, sending messages will *always* fail;
// use this for debugging along with the messagebox.
//
result := true;
if Message.count < 500 then BoxQuote( Message );
end; // function OnBeforeSendingMessage()
Your function call is the same as the existing one, so no problem there:
> function OnBeforeSendingMessage(
> var Message: TStringlist;
> Servername: string;
> IsEmail: boolean
> ):Boolean;
How do I incorporate this part with the existing part?
> begin
> ChangeAnyHeader(Message,IsEmail);
> result:=true;
> end;
BTW, what is the difference between the default header Archive: (yes/no)
and X-No-Archive: (yes/no)?
Thank you for taking the time to write the script.
Mike
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Fri, 22 Feb 2008 18:53
Date: Fri, 22 Feb 2008 18:53
59 lines
3994 bytes
3994 bytes
On Thu, 21 Feb 2008 23:59:04 -0600, Sqwertz wrote: >> I already gave that, above. In case you forgot, it's because it indicates >> that the poster is a troll and/or has something to hide, and I dislike >> that kind of behavior. > I really don't give a shit what kind of behavior you do or do not > dislike. I do know that I'm not contributing to your implied > behavior, and I don't have to explain myself every time this > subject comes up. I don't give a shit whether you give a shit, or not. You're tired of explaining yourself, "every time this comes up", huh? So, it happens frequently then? Folks call you out for being a troll, and a sporger/spammer, and you're tired of explaining. Right. What does the fact that it keeps happening tell you? What does it tell other readers here about your true intentions? That's right. It indicates you're a fucking lowlife troll/sporger/spammer. >>> And then you'd have to apologize for implying that I'm a troll and >>> spammer. >> No, I wouldn't. In fact, after a quick check on your posting history, >> it's become quite clear that that's *EXACTLY* what you are. Basically >> another kiddy flooder who thinks it's "kewl" to spew random drivel all >> over Usenet. Don't believe me? Take a quick look at the posting history >> yourself: >> >> <http://groups.google.com/groups?as_q=&num=10&scoring=r&hl=en&as_epq=&as_oq=&as_eq=&as_ugroup=&as_usubject=&as_uauthors=Sqwertz&lr=&as_qdr=&as_drrb=b&as_mind=1&as_minm=1&as_miny=2007&as_maxd=21&as_maxm=2&as_maxy=2008&safe=off> > Cute. Where did you dig up that crap? Where'd I "dig it up"? From a search on your posting name in GG, of course. I didn't make it up, dimwit. > I didn't post most of that stuff Right. Just "some" of it, right? > Now please piss off, you pathetic little wanker. You clearly > have nothing to useful (or intelligent) to contribute to this > thread. What I have to contribute is that I'm onto you for the troll/spammer/sporger that you are, and you don't like it. I'm just hoping to spread the word to other good Usenet citizens that we have the lowest form of life on Usenet right here amongst us. You're a scumbag, and are trying to expand your horizons by expanding the functionality of the XNA header. I despise little punks like you, and I take pride and pleasure in exposing you for what you are. Fuck off and die, worm. -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 19:44
Date: Fri, 22 Feb 2008 19:44
35 lines
3045 bytes
3045 bytes
On Fri, 22 Feb 2008 12:53:16 -0600, Dan C wrote: > I'm just > hoping to spread the word to other good Usenet citizens that we have the > lowest form of life on Usenet right here amongst us. You're a scumbag, > and are trying to expand your horizons by expanding the functionality of > the XNA header. If I really was a spammer and troll, wouldn't I *want* my posts to displayed on as many websites and forums as possible? Really - you don't make much sense. > Where'd I "dig it up"? From a search on your posting name in GG, of > course. I didn't make it up, dimwit. > > What I have to contribute is that I'm onto you for the > troll/spammer/sporger that you are, and you don't like it. Heh. You seem to have overlooked that your yourself are a known splorger, as you so conveniently glossed over: <http://groups.google.com/groups/search?hl=en&ie=UTF-8&q=author%3Ayoumustbejoking%40lan.invalid+group%3Anews.admin.*&qt_s=Search> Yeah - you're "on to me" all right <cough>. Why are you even here in NSR? Looking at your last 3 weeks worth of posts you have had nothing to say newsreader related and your sole purpose seems to be stalking this Alan Conner dude. That's called an obsession, and since it's oT, a troll as well. Now, considering this is Game, Set, and Match - you are hereby dismissed, little man. If you want to continue this, send me your email address, troll. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Oliver Cromm
Date: Fri, 22 Feb 2008 20:11
Date: Fri, 22 Feb 2008 20:11
19 lines
1820 bytes
1820 bytes
* Gember Breuk wrote:
> Here is the script that makes it work:
Attention! I don't believe this works correctly.
>From my understanding, it *overwrites* the header following User-Agent
(the "anchor") instead of inserting something, and may even drop
anything after that. In my test, it actually seemed to delete more than
one header.
Test well before deploying it in earnest. I may try to improve it
myself.
--
Skyler: Uncle Cosmo ... why do they call this a word processor?
Cosmo: It's simple, Skyler ... you've seen what food processors do
to food, right?
Cartoon by Jeff MacNelley
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 20:13
Date: Fri, 22 Feb 2008 20:13
149 lines
6149 bytes
6149 bytes
On Thu, 21 Feb 2008 23:39:57 -0600, Sqwertz wrote:
> 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.
Hmm. I'm not getting both XNA headers. If I comment out the call to
ChangeAnyHeader(), I get "XNZ: yes", but when I leave it in I only get "XNA:
banter" - never both of them. I've tried this on three different news
servers to see if maybe the server was stripping duplicate headers, but all
three servers did the same thing.
Here's my OnBeforeSendingMessage procedure:
program OnBeforeSendingMessage;
//
// Date: 2004/11/16
//
const
// ----------------------------------------------------
// Configuration settings
// ----------------------------------------------------
// set the header(s) you want to remove here, e.g. 'User-Agent:
,X-Scoring: '
Remove_Headers = 'User-Agent: ,MIME-Version: ,Content-Type: ';
// remove header(s) from emails and/or postings
// set 'true' or 'false'
RemoveFromEmails = true;
RemoveFromNews = true;
ChangeHeader = 'Message-ID';
AddHeader = 'X-No-Archive: banter';
// ----------------------------------------------------
// End of configuration settings
// ----------------------------------------------------
// --------------------------------------------------------------- //
// ---- No user maintainable parts below this line -------------- //
// --------------------------------------------------------------- //
procedure RemoveHeaders ( Message : TStringlist;
IsEmail : boolean
);
var i : integer;
k : integer;
s : string;
CommaPos : integer;
DelHeader : TStringlist;
RemoveH : String;
begin
RemoveH := Remove_Headers;
i := 0;
if ((IsEmail=true) and (RemoveFromEmails=true)) or
((IsEmail=false) and (RemoveFromNews=true)) then begin
If ( RemoveH <> '' ) then begin
try
DelHeader := TStringlist.Create;
if ansipos ( ',', RemoveH) = 0 then begin
DelHeader.Add ( LowerCase ( TrimLeft( RemoveH )));
end // if
else begin
CommaPos := 0;
for k := 1 to length ( RemoveH ) do begin
If RemoveH[k] = ',' then begin
DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - ( CommaPos + 1 )))));
CommaPos := k;
end; // if
if k = length ( RemoveH ) then
DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - CommaPos ))));
end; // for
end; // else
s:=Message.text;
while (Message.Strings[i]<>'') do begin
k := 0;
while k <= ( DelHeader.Count - 1 ) do begin
if pos( DelHeader[k], LowerCase ( Message.Strings[i] )) = 1
then begin
delete ( s, pos(DelHeader[k], LowerCase (s) ), length (
Message.Strings[i] ) + 2 );
i := i - 1;
k := DelHeader.Count - 1;
message.text := s;
end; // if
k := k + 1;
end; // while
i := i + 1;
end; //while
message.text:=s;
finally
DelHeader.Free;
end; // try - finally
end; // if
end; // if
end; // RemoveHeaders
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;
function OnBeforeSendingMessage(var Message : TStringlist;
Servername : string;
IsEmail : boolean
):boolean;
begin
ChangeAnyHeader(Message,IsEmail);
RemoveHeaders(Message,IsEmail);
//
result:=true;
end;
// ----------------------------------------------------------------------
begin
end.
-sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Ryoma
Date: Fri, 22 Feb 2008 20:21
Date: Fri, 22 Feb 2008 20:21
12 lines
3002 bytes
3002 bytes
On Fri, 22 Feb 2008 12:53:16 -0600, *Dan C* wrote:
> I despise little punks like you, and I take pride and pleasure in exposing
> you for what you are. Fuck off and die, worm.
You seem to have some problems. You seriously need help.
--
Ryoma
ICQ#41121680
ScarletBook
@2527@
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 20:34
Date: Fri, 22 Feb 2008 20:34
19 lines
2183 bytes
2183 bytes
On Fri, 22 Feb 2008 11:19:38 -0600, MikeV06 wrote: > What is the best way to combine (insert, whatever) your script with an > existing script for the OnBeforeSendingMessage event? See the script I just posted for an example. Basically you just move the "const" declarations in Gember's section to the existing "const" section. Then paste in the ChangeAnyHeader procedure in a block of it's own, and then add the procedure call (ChangeAnyHeader) to the existing OnBeforeSendingMessage() function. The OnBeforeSendingMessage() function will call two (or more) procedures and return True. Then again, my script doesn't work, so YMMV ;-) -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 20:40
Date: Fri, 22 Feb 2008 20:40
26 lines
2450 bytes
2450 bytes
On Fri, 22 Feb 2008 15:11:31 -0500, Oliver Cromm wrote: > * Gember Breuk wrote: > >> Here is the script that makes it work: > > Attention! I don't believe this works correctly. > > From my understanding, it *overwrites* the header following User-Agent > (the "anchor") instead of inserting something, and may even drop > anything after that. In my test, it actually seemed to delete more than > one header. > > Test well before deploying it in earnest. I may try to improve it > myself. After looking at it, it does seem like a problem. This would explain why one of my headers is disappearing as well. The array elements following the matched header in message.strings[] all need to be incremented by 1 before you insert the new header. I'll take as stab as fixing that part (except I don't now how to determine the highest element - would it just be indicated by message.strings[]= ''? -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Oliver Cromm
Date: Fri, 22 Feb 2008 20:51
Date: Fri, 22 Feb 2008 20:51
78 lines
3689 bytes
3689 bytes
* Oliver Cromm wrote:
> * Gember Breuk wrote:
>
>> Here is the script that makes it work:
>
> Attention! I don't believe this works correctly.
>
> From my understanding, it *overwrites* the header following User-Agent
> (the "anchor")
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.
In OnBeforeSendingMessage, after the program line, add
{$I Include_AddAnyHeader.ds}
Inside the function OnBeforeSendingMessage, add the following line:
AddAnyHeader ('X-No-Archive: banter', Message, IsEmail);
You can add more lines for any additional header you'd like to add. I'll
demonstrate it in this message.
Save and *do* compile. Reload scripts to be sure.
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);
AddAnyHeader ('X-CustomScript: AddAnyHeader', Message, IsEmail);
AddAnyHeader ('X-ScriptMadeBy: me, myself & I', Message, IsEmail);
end;
begin
end.
--------------
--
The nice thing about standards is that you have so many to choose
from; furthermore, if you do not like any of them, you can just
wait for next year's model.
Andrew Tanenbaum, _Computer Networks_ (1981), p. 168.
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 21:13
Date: Fri, 22 Feb 2008 21:13
35 lines
2617 bytes
2617 bytes
On Fri, 22 Feb 2008 15:11:31 -0500, Oliver Cromm wrote:
> * Gember Breuk wrote:
>
>> Here is the script that makes it work:
>
> Attention! I don't believe this works correctly.
>
> From my understanding, it *overwrites* the header following User-Agent
> (the "anchor") instead of inserting something, and may even drop
> anything after that. In my test, it actually seemed to delete more than
> one header.
>
> Test well before deploying it in earnest. I may try to improve it
> myself.
I would have thought this would work, but I keep getting an index
out of bounds for some reason.
procedure ChangeAnyHeader(Message:TStringlist;IsEmail:boolean);
var i:integer;
s:string;
begin
i := 1;
while (Message.Strings[i]<>'') do
begin
s := s + message.strings[i];
if pos(ChangeHeader,Message.Strings[i])<>0 then
begin
s := s + AddHeader;
end;
i := i + 1;
end; {end of while}
message.text := s;
end;
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Fri, 22 Feb 2008 21:25
Date: Fri, 22 Feb 2008 21:25
21 lines
1980 bytes
1980 bytes
On Fri, 22 Feb 2008 19:44:39 +0000, Sqwertz trolled: <snip troll drivel> > Now, considering this is Game, Set, and Match - you are hereby Declared the winner. Yes, I know. You weren't even a challenge. You lowlife spamming, sporging, trolling morons are easy to spot, and you're not even a good one. <SPANK> Now get back under your rock, troll. <BITCHSLAP> -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Dan C
Date: Fri, 22 Feb 2008 21:28
Date: Fri, 22 Feb 2008 21:28
14 lines
2000 bytes
2000 bytes
On Fri, 22 Feb 2008 21:21:12 +0100, Ryoma wrote: > You seem to have some problems. You seriously need help. Well, indeed we all have our problems, don't we? My biggest problem right now is trying to decide if I should get my tires rotated this weekend, or just go to the beach and drink tequila with the chickies. Which would you do? -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 21:39
Date: Fri, 22 Feb 2008 21:39
164 lines
6465 bytes
6465 bytes
On Fri, 22 Feb 2008 15:51:36 -0500, Oliver Cromm wrote:
> * Oliver Cromm wrote:
>
>> * Gember Breuk wrote:
>>
>>> Here is the script that makes it work:
>>
>> Attention! I don't believe this works correctly.
>>
>> From my understanding, it *overwrites* the header following User-Agent
>> (the "anchor")
>
> 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;
> --------------
Hmm. This wants to add two headers, both the same. I now have two XNA's,
both say banter for some reason. If I comment out the call to AddAnyHeader,
I get my "XNA: yes" back.
I added your script directly to the event script since it wasn't clear what
I should do with "program BEGIN END" in the template of "Add New Script" in
the CustomScrips tab. My event script looks like this:
program OnBeforeSendingMessage;
//
// Date: 2004/11/16
//
const
// ----------------------------------------------------
// Configuration settings
// ----------------------------------------------------
// set the header(s) you want to remove here, e.g. 'User-Agent:
,X-Scoring: '
Remove_Headers = 'User-Agent: ,MIME-Version: ,Content-Type: ';
// remove header(s) from emails and/or postings
// set 'true' or 'false'
RemoveFromEmails = true;
RemoveFromNews = true;
// ----------------------------------------------------
// End of configuration settings
// ----------------------------------------------------
procedure AddAnyHeader(AddHeader:String; var Message:TStringlist;
isEmail:Boolean); // This line is infolded
var i: integer;
begin
If not IsEmail then begin
i := 1;
while Message[i] <> '' do
i := i+1;
Message.insert(i, AddHeader);
end
end;
procedure RemoveHeaders ( Message : TStringlist;
IsEmail : boolean
);
var i : integer;
k : integer;
s : string;
CommaPos : integer;
DelHeader : TStringlist;
RemoveH : String;
begin
RemoveH := Remove_Headers;
i := 0;
if ((IsEmail=true) and (RemoveFromEmails=true)) or
((IsEmail=false) and (RemoveFromNews=true)) then begin
If ( RemoveH <> '' ) then begin
try
DelHeader := TStringlist.Create;
if ansipos ( ',', RemoveH) = 0 then begin
DelHeader.Add ( LowerCase ( TrimLeft( RemoveH )));
end // if
else begin
CommaPos := 0;
for k := 1 to length ( RemoveH ) do begin
If RemoveH[k] = ',' then begin
DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - ( CommaPos + 1 )))));
CommaPos := k;
end; // if
if k = length ( RemoveH ) then
DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - CommaPos ))));
end; // for
end; // else
s:=Message.text;
while (Message.Strings[i]<>'') do begin
k := 0;
while k <= ( DelHeader.Count - 1 ) do begin
if pos( DelHeader[k], LowerCase ( Message.Strings[i] )) = 1
then begin
delete ( s, pos(DelHeader[k], LowerCase (s) ), length (
Message.Strings[i] ) + 2 );
i := i - 1;
k := DelHeader.Count - 1;
message.text := s;
end; // if
k := k + 1;
end; // while
i := i + 1;
end; //while
message.text:=s;
finally
DelHeader.Free;
end; // try - finally
end; // if
end; // if
end; // RemoveHeaders
function OnBeforeSendingMessage(var Message : TStringlist;
Servername : string;
IsEmail : boolean
):boolean;
begin
//RemoveHeaders(Message,IsEmail);
AddAnyHeader ('X-No-Archive: banter', Message, IsEmail);
result:=true;
end;
// ----------------------------------------------------------------------
begin
end.
Whew.
-sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Blinky the Shark
Date: Fri, 22 Feb 2008 22:06
Date: Fri, 22 Feb 2008 22:06
18 lines
2128 bytes
2128 bytes
Ryoma wrote: > On Fri, 22 Feb 2008 12:53:16 -0600, *Dan C* wrote: > >> I despise little punks like you, and I take pride and pleasure in exposing >> you for what you are. Fuck off and die, worm. > > You seem to have some problems. You seriously need help. You seriously seem to not be a follower of this newsgroup. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [Dialog] I need two X-No-Archive Headers
Author: Gember Breuk
Date: Fri, 22 Feb 2008 22:24
Date: Fri, 22 Feb 2008 22:24
27 lines
2126 bytes
2126 bytes
On Fri, 22 Feb 2008 15:11:31 -0500, Oliver Cromm wrote: > * Gember Breuk wrote: > >> Here is the script that makes it work: > > Attention! I don't believe this works correctly. > > From my understanding, it *overwrites* the header following User-Agent > (the "anchor") instead of inserting something, and may even drop > anything after that. In my test, it actually seemed to delete more than > one header. > > Test well before deploying it in earnest. I may try to improve it > myself. Sorry to be late getting back to this, a very busy day! :-) Ah! Yes, I can see that now. Because I was tagging from the U-A, and it was the last header entry, I didn't have that problem. When you use a different tag, or add more headers, then the problem is there. I see that some of you have been working away at this, so I'll read some more and see how it's going. Thank you for catching this! -- Gem
Re: [Dialog] I need two X-No-Archive Headers
Author: Ryoma
Date: Fri, 22 Feb 2008 23:03
Date: Fri, 22 Feb 2008 23:03
11 lines
3004 bytes
3004 bytes
On Fri, 22 Feb 2008 14:06:46 -0800, *Blinky the Shark* wrote:
> You seriously seem to not be a follower of this newsgroup.
I seldom wrote and don't miss a single [Dialog] thread.
--
Ryoma
ICQ#41121680
ScarletBook
@2527@
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Fri, 22 Feb 2008 23:06
Date: Fri, 22 Feb 2008 23:06
20 lines
2480 bytes
2480 bytes
On Fri, 22 Feb 2008 14:06:46 -0800, Blinky the Shark wrote: > Ryoma wrote: > >> On Fri, 22 Feb 2008 12:53:16 -0600, *Dan C* wrote: >> >>> I despise little punks like you, and I take pride and pleasure in exposing >>> you for what you are. Fuck off and die, worm. >> >> You seem to have some problems. You seriously need help. > > You seriously seem to not be a follower of this newsgroup. I didn't hear you weigh in on Dan's comments, Blinky - even though XNA is (or was) an issue dear to your heart at one time. I suspect you didn't say anything because you know they're the rantings of a complete lunatic. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Oliver Cromm
Date: Fri, 22 Feb 2008 23:27
Date: Fri, 22 Feb 2008 23:27
15 lines
2169 bytes
2169 bytes
* Sqwertz wrote: > Thanks for the reminder. But I'd still like to know how to use > more than one XNA header... There are other services that may only react to "XNA: yes". One problem I see, though, is that the way any service will interpret headers isn't predictable: they may well look at only the first XNA header. There's probably no other way than trying it out. -- Java is the SUV of programming tools. A project done in Java will cost 5 times as much, take twice as long, and be harder to maintain than a project done in a scripting language such as PHP or Perl. - Philip Greenspun
Re: [Dialog] I need two X-No-Archive Headers
Author: Oliver Cromm
Date: Fri, 22 Feb 2008 23:27
Date: Fri, 22 Feb 2008 23:27
25 lines
2585 bytes
2585 bytes
* Sqwertz wrote: > On Fri, 22 Feb 2008 15:51:36 -0500, Oliver Cromm wrote: > >> Here's what should do the job in a minimal way. [...] > > Hmm. This wants to add two headers, both the same. I now have two XNA's, > both say banter for some reason. If I comment out the call to AddAnyHeader, > I get my "XNA: yes" back. Sorry, I can't reproduce that. > I added your script directly to the event script since it wasn't clear what > I should do with "program BEGIN END" in the template of "Add New Script" in > the CustomScrips tab. In the custom script, you should delete all the template. But it should work the same if you keep the procedure in the main script. And even when doing that, I can't reproduce the behaviour you describe above. Oliver (current job: mainly software testing) -- Q: What do computer engineers use for birth control? A: Their personalities.
Re: [Dialog] I need two X-No-Archive Headers
Author: Eggs Zachtly
Date: Fri, 22 Feb 2008 23:32
Date: Fri, 22 Feb 2008 23:32
18 lines
2402 bytes
2402 bytes
Ryoma said: > On Fri, 22 Feb 2008 14:06:46 -0800, *Blinky the Shark* wrote: > >> You seriously seem to not be a follower of this newsgroup. > > I seldom wrote and don't miss a single [Dialog] thread. So, you're saying that Blinky is correct. "I seldom wrote" is irrelevant to the statement. And admitting to reading only threads about "[Dialog]" would confirm Blinky's statement, as Dialog constitutes only a small portion of this newsgroup's content. -- Eggs Is Marx's tomb a communist plot?
Re: [Dialog] I need two X-No-Archive Headers
Author: Blinky the Shark
Date: Sat, 23 Feb 2008 00:16
Date: Sat, 23 Feb 2008 00:16
18 lines
2239 bytes
2239 bytes
Ryoma wrote: > On Fri, 22 Feb 2008 14:06:46 -0800, *Blinky the Shark* wrote: > >> You seriously seem to not be a follower of this newsgroup. > > I seldom wrote and don't miss a single [Dialog] thread. If all you're reading are Dialog threads, then my call is accurate: you don't really know the group and its participants. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [Dialog] I need two X-No-Archive Headers
Author: Blinky the Shark
Date: Sat, 23 Feb 2008 00:20
Date: Sat, 23 Feb 2008 00:20
35 lines
2837 bytes
2837 bytes
Sqwertz wrote: > On Fri, 22 Feb 2008 14:06:46 -0800, Blinky the Shark wrote: > >> Ryoma wrote: >> >>> On Fri, 22 Feb 2008 12:53:16 -0600, *Dan C* wrote: >>> >>>> I despise little punks like you, and I take pride and pleasure in exposing >>>> you for what you are. Fuck off and die, worm. >>> >>> You seem to have some problems. You seriously need help. >> >> You seriously seem to not be a follower of this newsgroup. > > I didn't hear you weigh in on Dan's comments, Blinky - even > though XNA is (or was) an issue dear to your heart at one time. I don't support it. But nobody needs to hear me say that again here; they know my feelings on it. Most of them share it. The few that feel a need to cover their tracks, like a dog kicking dirt on *his* shit, will continue using it. > I suspect you didn't say anything because you know they're the rantings > of a complete lunatic. You suspect wrong. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Sat, 23 Feb 2008 03:45
Date: Sat, 23 Feb 2008 03:45
15 lines
2256 bytes
2256 bytes
On Fri, 22 Feb 2008 16:20:58 -0800, Blinky the Shark wrote: Sqwertz wrote: > >> I suspect you didn't say anything because you know they're the rantings >> of a complete lunatic. > > You suspect wrong. Take rec.food.cooking for example. Show me one percent of the spams and trolls that use XNA. Or not. We'll just drop it. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: Blinky the Shark
Date: Sat, 23 Feb 2008 06:15
Date: Sat, 23 Feb 2008 06:15
25 lines
2533 bytes
2533 bytes
Sqwertz wrote: > On Fri, 22 Feb 2008 16:20:58 -0800, Blinky the Shark wrote: > > Sqwertz wrote: >> >>> I suspect you didn't say anything because you know they're the rantings >>> of a complete lunatic. >> >> You suspect wrong. > > Take rec.food.cooking for example. Show me one percent of the > spams and trolls that use XNA. I said I don't favor the use of XNA. I didn't claim I had any stats on who's using it and who isn't. So this is another of your red herring shifts of topic, and this is as far as I'll follow it. Happy soloing. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [Dialog] I need two X-No-Archive Headers
Author: Sqwertz
Date: Sat, 23 Feb 2008 06:31
Date: Sat, 23 Feb 2008 06:31
27 lines
2824 bytes
2824 bytes
On Fri, 22 Feb 2008 22:15:36 -0800, Blinky the Shark wrote: > Sqwertz wrote: > >> On Fri, 22 Feb 2008 16:20:58 -0800, Blinky the Shark wrote: >> >> Sqwertz wrote: >>> >>>> I suspect you didn't say anything because you know they're the rantings >>>> of a complete lunatic. >>> >>> You suspect wrong. >> >> Take rec.food.cooking for example. Show me one percent of the >> spams and trolls that use XNA. > > I said I don't favor the use of XNA. I didn't claim I had any stats on > who's using it and who isn't. So this is another of your red herring > shifts of topic, and this is as far as I'll follow it. Happy soloing. You implied that Dan was sane in regards to his unsubstantiated conclusions as to what constitutes a spammer. That's what this whole fiasco was about. EOT. -sw
Re: [Dialog] I need two X-No-Archive Headers
Author: MikeV06
Date: Sat, 23 Feb 2008 18:17
Date: Sat, 23 Feb 2008 18:17
65 lines
2881 bytes
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
Re: [Dialog] I need two X-No-Archive Headers
Author: MikeV06
Date: Sat, 23 Feb 2008 18:39
Date: Sat, 23 Feb 2008 18:39
25 lines
1807 bytes
1807 bytes
On Sat, 23 Feb 2008 12:27:13 -0600, MikeV06 wrote:
>
> Only the first call got inserted.
>
> Message-ID: <o99j9yxj2h8y.dlg@mycomputer06.invalid>
> Archive: No
> X-No-Archive: Yes
> Lines: 65
>
> Neither of these calls made it in.
>
> // This calls the add XNA: banter procedure
> AddAnyHeader ('X-No-Archive: banter', Message, IsEmail);
> AddAnyHeader ('X-ScriptMadeBy: s de man', Message, IsEmail);
> //
I need to see if the call to box_quotes is still working:
box:
Boxquote example
-
if Message.count < 500 then BoxQuote( Message );
-
Mike
Page 1 of 2 • 63 total messages
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