🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
30 messages
30 total messages Started by anonymous Thu, 13 Sep 2007 03:38
[Dialog] User-Agent Header
#205772
Author: anonymous
Date: Thu, 13 Sep 2007 03:38
3 lines
991 bytes
Hi everybody!

Is there any way to change "User-Agent" header in 40tude Dialog?
Re: [Dialog] User-Agent Header
#205767
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 04:18
12 lines
1746 bytes
anonymous@free.fr wrote:
> Hi everybody!
>
> Is there any way to change "User-Agent" header in 40tude Dialog?

Why do you want to change the User-Agent header?

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205769
Author: Gember Breuk
Date: Thu, 13 Sep 2007 04:48
12 lines
1318 bytes
On Wed, 12 Sep 2007 23:38:27 -0400, anonymous@free.fr wrote:

> Hi everybody!
> 
> Is there any way to change "User-Agent" header in 40tude Dialog?

Yes, there is.

http://www.40tude.com/dialog/wiki/index.php/CustomizeUserAgent

-- 
Gem
Re: [Dialog] User-Agent Header
#205770
Author: Steve Wertz
Date: Thu, 13 Sep 2007 05:08
17 lines
1811 bytes
On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:

> anonymous@free.fr wrote:
>> Hi everybody!
>>
>> Is there any way to change "User-Agent" header in 40tude Dialog?

http://www.40tude.com/dialog/wiki/index.php/Script_Library

Or more specifically,
http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader

> Why do you want to change the User-Agent header?

Why do you care why he wants to change the User-Agent header?

-sw
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205781
Author: Anon
Date: Thu, 13 Sep 2007 05:10
10 lines
1242 bytes
On Thu, 13 Sep 2007 00:48:06 -0400, Gember Breuk wrote:

> On Wed, 12 Sep 2007 23:38:27 -0400, anonymous@free.fr wrote:
> 
> 
> Yes, there is.
> 
> http://www.40tude.com/dialog/wiki/index.php/CustomizeUserAgent

Thanks
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205774
Author: Anon
Date: Thu, 13 Sep 2007 05:30
10 lines
1449 bytes
On Thu, 13 Sep 2007 00:48:06 -0400, Gember Breuk wrote:

> On Wed, 12 Sep 2007 23:38:27 -0400, anonymous@free.fr wrote:
> 
> Yes, there is.
> 
> http://www.40tude.com/dialog/wiki/index.php/CustomizeUserAgent

That just adds something at the end of the User-Agent string. But I want to
change the words "Dialog/etc". That script does NOT do what I want!
Re: [Dialog] User-Agent Header
#205775
Author: Anon
Date: Thu, 13 Sep 2007 05:35
20 lines
1592 bytes
On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:

> 
> Or more specifically,
> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
> 
> -sw

That script does not compile!

"Failed when compiling
[Error] OnBeforeSendingMessage.ds(20:83): Type mismatch"

It points to line 20 of the script:
    while (Message.Strings[[i]]<>'') and
(pos(RemoveHeader,Message.Strings[i])=0) do

I don't know enough Pascal to debug this script :(

This is proving to be an uphill battle... Any other solutions?
Re: [Dialog] User-Agent Header
#205776
Author: Tarkus
Date: Thu, 13 Sep 2007 05:41
22 lines
1800 bytes
Steve Wertz wrote:
> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
> 
>> anonymous@free.fr wrote:
>>> Hi everybody!
>>>
>>> Is there any way to change "User-Agent" header in 40tude Dialog?
> 
> http://www.40tude.com/dialog/wiki/index.php/Script_Library
> 
> Or more specifically,
> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
> 
>> Why do you want to change the User-Agent header?
> 
> Why do you care why he wants to change the User-Agent header?

Why do you care why he cares?

----------------
Now playing: Greg Lake - [Gary Moore and Greg Lake #05] Kidnapped 
[foobar2000 v0.9.4.4]
Re: [Dialog] User-Agent Header
#205777
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 05:49
28 lines
2143 bytes
Steve Wertz wrote:
> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>
>> anonymous@free.fr wrote:
>>> Hi everybody!
>>>
>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>
> http://www.40tude.com/dialog/wiki/index.php/Script_Library
>
> Or more specifically,
> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
>
>> Why do you want to change the User-Agent header?
>
> Why do you care why he wants to change the User-Agent header?

Sure, I'll play:

Why do you care why I care?

When's recess?!

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205778
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 05:50
20 lines
2056 bytes
Anon wrote:
> On Thu, 13 Sep 2007 00:48:06 -0400, Gember Breuk wrote:
>
>> On Wed, 12 Sep 2007 23:38:27 -0400, anonymous@free.fr wrote:
>> 
>> Yes, there is.
>> 
>> http://www.40tude.com/dialog/wiki/index.php/CustomizeUserAgent
>
> That just adds something at the end of the User-Agent string. But I want to
> change the words "Dialog/etc". That script does NOT do what I want!

Why do you wish to change your User-Agent header?


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205779
Author: Anon
Date: Thu, 13 Sep 2007 06:14
11 lines
1315 bytes
On 13 Sep 2007 05:50:45 GMT, Blinky the Shark wrote:

> Anon wrote:
> 
> Why do you wish to change your User-Agent header?

For privacy reasons. I just don't want this discussion to go off-topic, so
I'd rather leave it at that.

Any ideas why that script is not working?
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205780
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 06:45
22 lines
2170 bytes
Anon wrote:
> On 13 Sep 2007 05:50:45 GMT, Blinky the Shark wrote:
>
>> Anon wrote:
>> 
>> Why do you wish to change your User-Agent header?
>
> For privacy reasons. I just don't want this discussion to go off-topic, so
> I'd rather leave it at that.

Thank you for responding, even if I had to ask twice.

> Any ideas why that script is not working?

No.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205786
Author: Anon
Date: Thu, 13 Sep 2007 07:50
4 lines
1222 bytes

This works:
http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205782
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 08:52
14 lines
2071 bytes
Anon wrote:
>
> This works: http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders

Why did you respond to one of *my* posts with that and snip all of my
text (but not my Message-ID in your References header), especially when I
showed no interest in a Dialog script?


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205783
Author: Anon
Date: Thu, 13 Sep 2007 09:22
12 lines
1919 bytes
On 13 Sep 2007 08:52:46 GMT, Blinky the Shark wrote:

> Why did you respond to one of *my* posts with that and snip all of my
> text (but not my Message-ID in your References header), especially when I
> showed no interest in a Dialog script?

I'm new to usenet, and those little details escape me. There is no hidden
meaning. I just wanted to wrap up this thread with info that solution was
found. I know you wanted to discuss something else here. And I see that
you've also got "X-OS: Mandriva 2006 Linux; kernel 2.6.12" among your
headers. Check out alt.privacy if you realy want to look in depth which
info your software should or should not be leaking.
Re: [Dialog] User-Agent Header
#205785
Author: Jay Levitt
Date: Thu, 13 Sep 2007 10:01
21 lines
2210 bytes
On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>> anonymous@free.fr wrote:
>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>> Why do you want to change the User-Agent header?
> Why do you care why he wants to change the User-Agent header?

Because this is Usenet.  The appropriate answer to "How do I do A?  I've
tried method X already." is one of:

1. Why do you want to do A?
1a. Why on EARTH would anybody want to do A?  
2. Do B, it's much better.
3. Have you tried looking into method X?
4. Google is your friend.

-- 
Jay Levitt                |
Boston, MA                | My character doesn't like it when they
Faster: jay at jay dot fm | cry or shout or hit.
http://www.jay.fm         | - Kristoffer 
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205790
Author: William Poaster
Date: Thu, 13 Sep 2007 11:55
18 lines
2558 bytes
It was on, or about,  Thu, 13 Sep 2007 08:52:46 +0000, that as I was
halfway through a large jam doughnut, Blinky the Shark wrote:

> Anon wrote:
>>
>> This works: http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders
> 
> Why did you respond to one of *my* posts with that and snip all of my
> text (but not my Message-ID in your References header), especially when
> I showed no interest in a Dialog script?

See his next post to you! 
He seems to think that because you have ""X-OS: Mandriva 2006 Linux; 
kernel 2.6.12" in your headers,your software is leaking details! 
Unbelievable.

Also seems to think that "X-No-Archive: yes" works too, as if google was 
the only Usenet repository.
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205792
Author: Dan C
Date: Thu, 13 Sep 2007 13:16
19 lines
2179 bytes
On Thu, 13 Sep 2007 05:22:55 -0400, Anon wrote:

>> Why did you respond to one of *my* posts with that and snip all of my
>> text (but not my Message-ID in your References header), especially when I
>> showed no interest in a Dialog script?
 
> I'm new to usenet, and those little details escape me.

Don't forget that you're also an ignorant moron.

> Check out alt.privacy if you realy want to look in depth which
> info your software should or should not be leaking.

Fuck off, n00b, and then tighten up your little tinfoil beanie hat.


-- 
"Bother!" said Pooh, as Christopher Robin pleaded to be spanked again.
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205795
Author: Tarkus
Date: Thu, 13 Sep 2007 15:12
13 lines
1689 bytes
Blinky the Shark wrote:
> Anon wrote:
>> This works: http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders
> 
> Why did you respond to one of *my* posts with that and snip all of my
> text (but not my Message-ID in your References header), especially when I
> showed no interest in a Dialog script?

Because he cares.  ;)
-- 
Now playing: Triumvirat - [Spartacus #08] The March to the Eternal City 
   [foobar2000 v0.9.4.4]
Re: [Dialog] User-Agent Header
#205799
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 18:05
18 lines
2074 bytes
Jay Levitt wrote:
> On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>>> anonymous@free.fr wrote:
>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>>> Why do you want to change the User-Agent header?
>> Why do you care why he wants to change the User-Agent header?
>
> Because this is Usenet.

No, because I was curious.  That's all that's required.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header
#205810
Author: Steve Wertz
Date: Thu, 13 Sep 2007 19:34
123 lines
5214 bytes
On Thu, 13 Sep 2007 01:35:06 -0400, Anon wrote:

> On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
> 
>> 
>> Or more specifically,
>> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
>> 
>> -sw
> 
> That script does not compile!

Well, here's mine.  I may have tweaked it.  It's based on:
http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders

Mine removes more than just User-Agent.  The other headers
are removed to work around Thunderbird bugs in binary
postings.

-sw

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
//  ---------------------------------------------------- 


   // --------------------------------------------------------------- //
   // ----  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


function OnBeforeSendingMessage(var Message     : TStringlist; 
                                    Servername  : string; 
                                    IsEmail     : boolean
):boolean;

begin
  RemoveHeaders(Message,IsEmail);
  result:=true;
end;

// ----------------------------------------------------------------------

begin
end.
Re: [Dialog] User-Agent Header
#205811
Author: Steve Wertz
Date: Thu, 13 Sep 2007 19:35
25 lines
2103 bytes
On Wed, 12 Sep 2007 22:41:24 -0700, Tarkus wrote:

> Steve Wertz wrote:
>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>> 
>>> anonymous@free.fr wrote:
>>>> Hi everybody!
>>>>
>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>> 
>> http://www.40tude.com/dialog/wiki/index.php/Script_Library
>> 
>> Or more specifically,
>> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
>> 
>>> Why do you want to change the User-Agent header?
>> 
>> Why do you care why he wants to change the User-Agent header?
> 
> Why do you care why he cares?

Why do you care why I care why he cares that the OP wants to
remove User-Agent?

-sw
Re: [Dialog] User-Agent Header
#205812
Author: Steve Wertz
Date: Thu, 13 Sep 2007 19:37
18 lines
2066 bytes
On 13 Sep 2007 18:05:47 GMT, Blinky the Shark wrote:

> Jay Levitt wrote:
>> On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
>>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>>>> anonymous@free.fr wrote:
>>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>>>> Why do you want to change the User-Agent header?
>>> Why do you care why he wants to change the User-Agent header?
>>
>> Because this is Usenet.
> 
> No, because I was curious.  That's all that's required.

And he said all that was required in the other thread: "It
doesn't matter to you".

-sw
Re: [Dialog] User-Agent Header
#205813
Author: Tarkus
Date: Thu, 13 Sep 2007 19:53
26 lines
2043 bytes
Steve Wertz wrote:
> On Wed, 12 Sep 2007 22:41:24 -0700, Tarkus wrote:
> 
>> Steve Wertz wrote:
>>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>>>
>>>> anonymous@free.fr wrote:
>>>>> Hi everybody!
>>>>>
>>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>>> http://www.40tude.com/dialog/wiki/index.php/Script_Library
>>>
>>> Or more specifically,
>>> http://www.40tude.com/dialog/wiki/index.php/RemoveAnyHeader
>>>
>>>> Why do you want to change the User-Agent header?
>>> Why do you care why he wants to change the User-Agent header?
>> Why do you care why he cares?
> 
> Why do you care why I care why he cares that the OP wants to
> remove User-Agent?

It's a weakness of mine.  I'm just a very caring person.
-- 
Now playing: Pat Travers & Carmine Appice - [Bazooka #09] Boom, Boom 
(Out Go The Lights)
Re: [Dialog] User-Agent Header
#205819
Author: Blinky the Shark
Date: Thu, 13 Sep 2007 21:58
25 lines
2390 bytes
Steve Wertz wrote:
> On 13 Sep 2007 18:05:47 GMT, Blinky the Shark wrote:
>
>> Jay Levitt wrote:
>>> On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
>>>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>>>>> anonymous@free.fr wrote:
>>>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>>>>> Why do you want to change the User-Agent header?
>>>> Why do you care why he wants to change the User-Agent header?
>>>
>>> Because this is Usenet.
>> 
>> No, because I was curious.  That's all that's required.
>
> And he said all that was required in the other thread: "It
> doesn't matter to you".

In this one, he answered my question.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Re: [Dialog] User-Agent Header
#205832
Author: Adam Funk
Date: Fri, 14 Sep 2007 10:09
19 lines
1743 bytes
On 2007-09-13, Jay Levitt wrote:

> On Thu, 13 Sep 2007 00:08:51 -0500, Steve Wertz wrote:
>> On 13 Sep 2007 04:18:00 GMT, Blinky the Shark wrote:
>>> anonymous@free.fr wrote:
>>>> Is there any way to change "User-Agent" header in 40tude Dialog?
>>> Why do you want to change the User-Agent header?
>> Why do you care why he wants to change the User-Agent header?
>
> Because this is Usenet.  The appropriate answer to "How do I do A?  I've
> tried method X already." is one of:
>
> 1. Why do you want to do A?
> 1a. Why on EARTH would anybody want to do A?  
> 2. Do B, it's much better.
> 3. Have you tried looking into method X?
> 4. Google is your friend.

That's good!  I'll have to file that for future reference.
Re: User-Agent Header
#205853
Author: frydd
Date: Fri, 14 Sep 2007 14:01
15 lines
1808 bytes
On 13 Sep., 05:38, anonym...@free.fr wrote:
> Hi everybody!
>
> Is there any way to change "User-Agent" header in 40tude Dialog?

not in 40d, but with http://hamster.arcornews.de/tgl/korrnews/Korrnews.4.2.1.zip
With that tool you're able to make all changes you want. It works
within the 40d-OBSending-script, so there is some input necessary.
Read manual.

--
regards
frydd(s)...the GOOGLEcat

Re: [Dialog] User-Agent Header PCLinuxOS 2007
#205865
Author: Gember Breuk
Date: Fri, 14 Sep 2007 19:56
64 lines
2819 bytes
On Thu, 13 Sep 2007 01:30:43 -0400, Anon wrote:

> On Thu, 13 Sep 2007 00:48:06 -0400, Gember Breuk wrote: 
>> On Wed, 12 Sep 2007 23:38:27 -0400, anonymous@free.fr wrote:
>> 
>> Yes, there is.
>> 
>> http://www.40tude.com/dialog/wiki/index.php/CustomizeUserAgent
> 
> That just adds something at the end of the User-Agent string. But I want to
> change the words "Dialog/etc". That script does NOT do what I want!

Oh, don't get excited. Here's a script that will change almost any text
you want before sending the post. Just change the "old_text" and
"new_text" constructs as needed:

<--------------------------------------> 

program OnBeforeSendingMessage;

const old_text='A Dialog by any other name... ';
const new_text ='Dialog by any other name...';

function StringReplace(S, OldPattern, NewPattern: string): string;

var
  SearchStr, Patt, NewStr: string;
  Offset: Integer;
begin
  SearchStr := S;
  Patt := OldPattern;
  NewStr := S;
  Result := '';
  while SearchStr <> '' do
  begin
    Offset := AnsiPos(Patt, SearchStr);
    if Offset = 0 then
    begin
      Result := Result + NewStr;
      Break;
    end;
    Result := Result + Copy(NewStr, 1, Offset - 1) + NewPattern;
    NewStr := Copy(NewStr, Offset + Length(OldPattern), 2147483647);
    SearchStr := Copy(SearchStr, Offset + Length(Patt), 2147483647);
  end;
end;

function OnBeforeSendingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean):boolean;
var s:string;
begin
result:=true;
s:=message.text;
s:=StringReplace(s,old_text,new_text);
message.text:=s;
end;

begin
end.

<-------------------------------------->

-- 
Gem
Re: User-Agent Header
#206195
Author: anonymous
Date: Fri, 21 Sep 2007 14:46
19 lines
1656 bytes
On Fri, 14 Sep 2007 07:01:20 -0700, frydd wrote:

> On 13 Sep., 05:38, anonym...@free.fr wrote:
>> Hi everybody!
>>
>> Is there any way to change "User-Agent" header in 40tude Dialog?
> 
> not in 40d, but with http://hamster.arcornews.de/tgl/korrnews/Korrnews.4.2.1.zip
> With that tool you're able to make all changes you want. It works
> within the 40d-OBSending-script, so there is some input necessary.
> Read manual.

Thanks, it's a great program. I presume this is the script you were talking
about:

http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMessage

The only problem is Dialog still sends out the message even if Korrnews
doesn't work. 
Re: [Dialog] User-Agent Header PCLinuxOS 2007
#206197
Author: anonymous
Date: Fri, 21 Sep 2007 15:07
58 lines
2806 bytes
On Fri, 14 Sep 2007 15:56:46 -0400, Gember Breuk wrote:

> Oh, don't get excited. Here's a script that will change almost any text
> you want before sending the post. Just change the "old_text" and
> "new_text" constructs as needed:
> 
> <--------------------------------------> 
> 
> program OnBeforeSendingMessage;
> 
> const old_text='A Dialog by any other name... ';
> const new_text ='Dialog by any other name...';
> 
> function StringReplace(S, OldPattern, NewPattern: string): string;
> 
> var
>   SearchStr, Patt, NewStr: string;
>   Offset: Integer;
> begin
>   SearchStr := S;
>   Patt := OldPattern;
>   NewStr := S;
>   Result := '';
>   while SearchStr <> '' do
>   begin
>     Offset := AnsiPos(Patt, SearchStr);
>     if Offset = 0 then
>     begin
>       Result := Result + NewStr;
>       Break;
>     end;
>     Result := Result + Copy(NewStr, 1, Offset - 1) + NewPattern;
>     NewStr := Copy(NewStr, Offset + Length(OldPattern), 2147483647);
>     SearchStr := Copy(SearchStr, Offset + Length(Patt), 2147483647);
>   end;
> end;
> 
> function OnBeforeSendingMessage(var Message: TStringlist; Servername:
> string; IsEmail: boolean):boolean;
> var s:string;
> begin
> result:=true;
> s:=message.text;
> s:=StringReplace(s,old_text,new_text);
> message.text:=s;
> end;
> 
> begin
> end.
> 
> <-------------------------------------->

Thank you! I am sorry I didn't respond right away. This thread got so
cluttered with off-topic junk, that I missed your useful post. 

I finally got a plonk-file up and running, so good posts are much more
visible now :)  You wouldn't believe how different this thread looks with a
plonk file and without :)
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