๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
22 messages
22 total messages Started by Bo Stevens Sun, 14 Dec 2003 00:33
Get the parent message in Dialog
#139251
Author: Bo Stevens
Date: Sun, 14 Dec 2003 00:33
7 lines
1360 bytes
Has anyone written a script for Dialog that will retrieve and display the
parent message?  In XNews hitting the backspace key would result in the
display of the parent message, and if it was not local it would retrieve it
from the server.

Thanks
Bo
Re: Get the parent message in Dialog
#139318
Author: Alain GUERIN
Date: Mon, 15 Dec 2003 07:07
27 lines
2257 bytes
Hello,


On Sat, 13 Dec 2003 18:33:55 -0600, Bo Stevens wrote:

> Has anyone written a script for Dialog that will retrieve and display the
> parent message?  In XNews hitting the backspace key would result in the
> display of the parent message, and if it was not local it would retrieve it
> from the server.

It seems that nobody has an answer.

I don't too, but I can say what I do when I want to go to the parent
message:

I show headers (key [H]) then I click on the last id listed in the field
[References:].

I don't know what Dialog do when the parent is not local, as every time I
did it, the parent was only 10 to 20 messages higher and present in the
group.

HTH


-- 
A.G.
Re: Get the parent message in Dialog
#139323
Author: Antonio 'Gandalf' Favata
Date: Mon, 15 Dec 2003 09:14
16 lines
2313 bytes
news.software.readers ~ 15/12/03 08:07:22 ~ Alain GUERIN:

> I show headers (key [H]) then I click on the last id listed in the field
> [References:].

Yep, this still appears to be the best way :)

> I don't know what Dialog do when the parent is not local

It prompts the user, asking if it should search for it in the other
groups, on Google or on the server.
-- 
Fare Well! | 40tude Dialog 2.0.8.1it | Jabber ID gandalf@jabber.ngnet.it
G          | http://snurl.com/dialog | ICQ# 16553733 ~ 15/12/03 09:47:27

ยซI was the Enemy of Sauron; and my work is finished. I shall go soon.ยป
Re: Get the parent message in Dialog
#139324
Author: Richard Wakeford
Date: Mon, 15 Dec 2003 09:23
12 lines
1658 bytes
On Sat, 13 Dec 2003 18:33:55 -0600, Bo Stevens wrote:

> Has anyone written a script for Dialog that will retrieve and display the
> parent message?  In XNews hitting the backspace key would result in the
> display of the parent message, and if it was not local it would retrieve it
> from the server.

AMEOL has the same usefulness with the "O" key and gives you the choice of
downloading it or not. A very useful feature and one that I miss here a
lot.
-- 
Richard
Re: Get the parent message in Dialog
#139326
Author: Jeff Relf
Date: Mon, 15 Dec 2003 10:17
14 lines
1721 bytes
Hello Alain GUERIN ,  Re:  Getting to the parent node ,
  You wrote ,  " I show headers "

Someone ,  somewhere ,  
  must have written a script to go to the parent node .

I should be able to get there 
  with a single click or key press .

It's just the last  Message-ID  in the references line .

One of these days ...  I should go looking for such a script ,
  or maybe even write it myself .
Re: Get the parent message in Dialog
#139330
Author: Alain GUERIN
Date: Mon, 15 Dec 2003 10:45
23 lines
2058 bytes
Hello,


On Mon, 15 Dec 2003 02:17:56 -0800, Jeff Relf wrote:

> Hello Alain GUERIN ,  Re:  Getting to the parent node ,
>   You wrote ,  " I show headers "
> 
> Someone ,  somewhere ,  
>   must have written a script to go to the parent node .
> 
> I should be able to get there 
>   with a single click or key press .
> 
> It's just the last  Message-ID  in the references line .
> 
> One of these days ...  I should go looking for such a script ,
>   or maybe even write it myself .

Thanks, Jeff. Let we know when.

-- 
A.G.
Re: Get the parent message in Dialog
#139333
Author: Jeff Relf
Date: Mon, 15 Dec 2003 12:01
7 lines
1646 bytes
Hello Alain GUERIN ,
  Re:  A single click to the parent message ,  You wrote ,
    " Let we know when "

Ok ,  I'll try to remember that .

I wonder why it doesn't exist already ?  No one wants it ?
Re: Get the parent message in Dialog
#139486
Author: Jeff Relf
Date: Wed, 17 Dec 2003 16:20
11 lines
1750 bytes
Hello Alain GUERIN ,
  Re:  A single click to the parent message ,  You wrote ,
    " Let we know when "

I don't think a script like this is doable .
  Is near as I can tell ,
    even the  Execute Message-ID  command is not available .

And even if it was ,
  what I'd really need a command like this :
    ExecuteMessageID('1dl1cm3nuejg6.dlg@__.Jeff.Relf');
Re: Get the parent message in Dialog
#139549
Author: John Fitzsimons
Date: Fri, 19 Dec 2003 06:21
14 lines
1700 bytes
On Mon, 15 Dec 2003 04:01:30 -0800, Jeff Relf wrote:

> Hello Alain GUERIN ,
>   Re:  A single click to the parent message ,  You wrote ,
>     " Let we know when "

> Ok ,  I'll try to remember that .
> 
> I wonder why it doesn't exist already ?  No one wants it ?

I want it, but as I need it about once every couple of years I am not
fussed about when the current options are replaced.

Regards, John.
Re: Get the parent message in Dialog
#139554
Author: Jeff Relf
Date: Fri, 19 Dec 2003 12:01
14 lines
1872 bytes
Hello John Fitzsimons , 
  Re:  A single click to the parent message ,  You wrote ,
" I want it , 
    but as I need it about once every couple of years ... "

I need it all the time
   because I use an unread ,  unthreaded view .
   Dialog is obviously not designed to be used like that .

Hmm ...  I  Really  need to write my own NNTP ,
  FTP ,  HTTP ,  POP ,  SMTP ,  etc.  client .

One of these days ...  maybe .
Re: Get the parent message in Dialog
#139595
Author: John Fitzsimons
Date: Sat, 20 Dec 2003 02:38
24 lines
2032 bytes
On Fri, 19 Dec 2003 04:01:42 -0800, Jeff Relf wrote:

> Hello John Fitzsimons , 

Hi Jeff,

>   Re:  A single click to the parent message ,  You wrote ,
> " I want it , 
>     but as I need it about once every couple of years ... "
 
> I need it all the time
>    because I use an unread ,  unthreaded view .
>    Dialog is obviously not designed to be used like that .

< snip >

Why do you need to use it at all ? I use an unread, unthreaded view, as
well. If I want to see all of a thread then I just re-sort as a "threaded"
view. Never need to go to the server.

I have the parent of all threads going back as far as I like. Far further
than any external server.

Regards, John.
Re: Get the parent message in Dialog
#139603
Author: Jeff Relf
Date: Sat, 20 Dec 2003 11:38
11 lines
1947 bytes
Hello John Fitzsimons ,
  Re:  A single click to the parent message ,  You ask ,
    " Why do you need to use it at all ? "

I do occasionally switch to the threaded view ,
  but I keep no messages longer than five days .

For me anyways ,
  I've found that threads constantly switch topics .
  So I usually only care to see the parent ,
    or maybe the parent's parent ,  etc. .
Re: Get the parent message in Dialog
#139612
Author: MLC
Date: Sat, 20 Dec 2003 14:34
19 lines
2121 bytes
Il 14/dic/2003 Bo Stevens ha scritto:

> Has anyone written a script for Dialog that will retrieve and display the
> parent message?  In XNews hitting the backspace key would result in the
> display of the parent message, and if it was not local it would retrieve it
> from the server.
> 

I've written one, posted today in another thread
<aj9lr4xoxolz.dlg@ID-187316.user.uni-berlin.de>
(be aware of the word wrapping)

However it is not a single key script, because after the assigned hotkey
(backspace for me) you have to press also Ctrl-V and Enter: as you can read
in the other thread, I'm not able to paste via script the content of the
clipboard into the Message-ID handler.
-- 
Maria Luisa C - 20/12/2003 15.17.35, here.
http://fido.altervista.org/
Re: Get the parent message in Dialog
#139615
Author: Enrico C
Date: Sat, 20 Dec 2003 15:55
17 lines
1903 bytes
MLC | news.software.readers
in <news:1rnt6r0bjuhq7$.dlg@ID-187316.user.uni-berlin.de>

> I've written one, posted today in another thread
> <aj9lr4xoxolz.dlg@ID-187316.user.uni-berlin.de>

Thank you!  :)

Mind you, you posted your script replying to Jeff Relf, but many
people here have plonked him and even his threads, so they might have
missed your post. They can retrieve it, if they want, anyway  :)

-- 
Enrico C

| 40tude Dialog Italy Cafe
| http://www.lillathedog.net/dialog/
Re: Get the parent message in Dialog
#139620
Author: Enrico C
Date: Sat, 20 Dec 2003 17:41
17 lines
1926 bytes
MLC | news.software.readers
in <news:1rnt6r0bjuhq7$.dlg@ID-187316.user.uni-berlin.de>

> I've written one, posted today in another thread
> <aj9lr4xoxolz.dlg@ID-187316.user.uni-berlin.de>

Thank you!  :)

Mind you, you posted your script in a reply to Jeff Relf, but many
people here have plonked him and even his threads, so they might have
missed your post. They can retrieve it, if they want, anyway  :)

-- 
Enrico C

| 40tude Dialog Italy Cafe
| http://www.lillathedog.net/dialog/
Re: Get the parent message in Dialog
#139627
Author: MLC
Date: Sat, 20 Dec 2003 18:01
152 lines
5155 bytes
Il 20/dic/2003 Enrico C ha scritto:

> Mind you, you posted your script in a reply to Jeff Relf, but many
> people here have plonked him and even his threads, so they might have
> missed your post. They can retrieve it, if they want, anyway  :)

Since I've also changed a little the script (as you pointed out there were
conflicts with another script), I post here again the new version:
(note anyway that IMHO Jeff Relf is not a troll, he is only a little
bizarre!)

Program GoToParent;
uses
   Forms,
   StdCtrls;
var
   myForm: TForm;
   myMemo: TMemo;
   Refs: string;
   ParentID: string;
FUNCTION EmptyClipboard:boolean; external 'EmptyClipboard@user32.dll 
stdcall';
FUNCTION OpenClipboard(hWndNewOwner: INTEGER):boolean; external 
'OpenClipboard@user32.dll stdcall';
FUNCTION CloseClipboard:boolean; external 'CloseClipboard@user32.dll 
stdcall';

PROCEDURE ClearCLipboard;
BEGIN
 OpenClipboard(0);
 EmptyClipboard;
 CloseClipboard;
END;

PROCEDURE GetMessBody (var LocMymemo: tMemo);
BEGIN
 LocMyMemo.Clear;
 ClearCLipboard;
 ADo('ArticlePane');
 ADo('SelectAll');
 Ado('Copy');
 LocMyMemo.PasteFromClipboard;
END;

FUNCTION RefsExtract( HeaderTag: String; var LocMymemo: tmemo): string;
var
 index : integer;
 allrefs: string;
BEGIN
 index := 0;
 allrefs := '';
 WHILE (index < LocMymemo.Lines.count-1) AND (allrefs = '') DO
 BEGIN
   IF POS(HeaderTag,LocMymemo.lines.Strings[index]) = 1 THEN
   BEGIN
    allrefs := LocMymemo.lines.Strings[index];
    index := index+1;
    WHILE (index < LocMymemo.Lines.count-1)
    AND (POS('<',LocMymemo.lines.Strings[index])=1) DO
    BEGIN
     allrefs := allrefs + LocMymemo.lines.Strings[index];
     index := index+1;
    END
  END
  index := index+1;
 END;
  result:=allrefs;
END;

FUNCTION GetHeaderInfo(HeaderTag : string; var LocMymemo : tMemo): string;
BEGIN
 Result := RefsExtract(HeaderTag, LocMymemo);
 delete(Result, 1, length(HeaderTag));
END;

FUNCTION GetRefs(var LocMymemo : tMemo): string;
BEGIN
 result := GetHeaderInfo('References: ', LocMymemo);
END;
   
FUNCTION GetParent(var LocRefs: string): string;
var
 tag: string;
 index: integer;
 posiz, lung : integer;
BEGIN
 tag := '<';
 index := length(LocRefs)-1;
 result := '';
 posiz := 0;
 while (index > 0) and (posiz = 0) do
 begin
  if Pos(tag, LocRefs[index])=0 then
    index:=index-1
  else
    posiz := index;
    lung:=length(LocRefs)-posiz+1;
    result := copy(LocRefs, posiz, lung);
  end
END;

FUNCTION AreHeadersHid(var LocMymemo : tMemo): boolean;
var
 index: integer;
 temp: boolean;
BEGIN
 temp := true;
 IF LocMyMemo.Lines.count > 10 THEN
 BEGIN
  index := 0;
  WHILE (Index < LocMyMemo.Lines.count -1) and temp DO
  BEGIN
   index := index+1;
   temp := Pos('Newsgroups: ', LocMyMemo.Lines.strings[index]) = 0;
  END;
 END;
result := temp;
END;       

Begin
   myForm := tForm.Create(nil);
   myForm.width:=800;
   myForm.Height:=600;
   myMemo := tMemo.Create(myForm);
   myMemo.Parent := myForm;
   myMemo.Width := myForm.width;
   myMemo.Height := myForm.Height;
   try
   GetMessBody(myMemo);
   if AreHeadersHid(myMemo) then
      ADo('ShowHeaders');
   GetMessBody(myMemo);
   Refs := GetRefs(myMemo);
   myMemo.Clear;
   myMemo.Lines.Add(Refs);
   ParentID := GetParent(Refs);
   ClearClipboard;
   myMemo.Clear;
   myMemo.Lines.Add(ParentID);
   myMemo.SelectAll;
   myMemo.CopyToClipboard;
   if AreHeadersHid(myMemo) then
     ADo('ShowHeaders');
   finally
   myform.free;
   Ado('FindMessageID');
   end;
End.

-- 
Maria Luisa C - 20/12/2003 18.52.40, here.
http://fido.altervista.org/
Re: Get the parent message in Dialog
#139629
Author: Jeff Relf
Date: Sat, 20 Dec 2003 18:07
5 lines
1645 bytes
Hello MLC ,  You wrote ,
" Note anyway that IMHO Jeff Relf is not a troll ,
    he is only a little bizarre ! "

Wow !   Can I quote you on my resume ?
Re: Get the parent message in Dialog
#139630
Author: MLC
Date: Sat, 20 Dec 2003 18:12
12 lines
1790 bytes
Il 20/dic/2003 Jeff Relf ha scritto:

> Hello MLC ,  You wrote ,
> " Note anyway that IMHO Jeff Relf is not a troll ,
>     he is only a little bizarre ! "
> 
> Wow !   Can I quote you on my resume ?

You've got it! :)
-- 
Maria Luisa C - 20/12/2003 19.10.34, here.
http://fido.altervista.org/
Re: Get the parent message in Dialog
#139638
Author: Enrico C
Date: Sat, 20 Dec 2003 20:54
39 lines
2549 bytes
MLC | news.software.readers
in <news:xyte4qycayk8$.dlg@ID-187316.user.uni-berlin.de>

> Il 20/dic/2003 Enrico C ha scritto:
> 
>> Mind you, you posted your script in a reply to Jeff Relf, but many
>> people here have plonked him and even his threads, so they might have
>> missed your post. They can retrieve it, if they want, anyway  :)
> 
> Since I've also changed a little the script (as you pointed out there were
> conflicts with another script),  I post here again the new version:

Great! 
Both scripts work like a charm now :)

> (note anyway that IMHO Jeff Relf is not a troll, 

Well, I didn't say that... :)
(and... yes, I know you didn't say I did say that.... :)))

> he is only a little
> bizarre!)

Hi Seattle!

> Program GoToParent;

<snip>

And next comes.... a script by MLC... Program GoToSiblings (other
messages which reply to the same Parent message )!

Just kidding ^__^ 

-- 
Enrico C

| 40tude Dialog Italy Cafe
| http://www.lillathedog.net/dialog/
Crikey !
#139639
Author: Jeff Relf
Date: Sat, 20 Dec 2003 21:14
12 lines
1905 bytes
Hello Enrico C ,  You wrote , " Hi Seattle ! "

Thanks ,  Seattle.General is the captain of my world .

But you forgot to mention my other friends :
  The Linux  " Losers "  in Comp.OS.Linux.Advocacy ,
  and the  Physics / Metaphysics  " Cranks "  in Sci.Physics .

Crikey !  My Aussie stalker from Cola has plonked me .

  So maybe  News.Software.Readers  
    won't be clogged with his insults anymore .
Re: Get the parent message in Dialog
#139664
Author: Enrico Bauer
Date: Sun, 21 Dec 2003 10:15
14 lines
1750 bytes
20.12.2003 15:34:02, *MLC*:

> However it is not a single key script, because after the assigned hotkey
> (backspace for me) you have to press also Ctrl-V and Enter:

If it's only that, add at the end of your script:

// Ctrl-V
PostKey(86, false, false, true, false, false, false, false, false);
// Enter
PostKey(13, false, false, false, false, false, false, false, false);

HTH
Enrico B.
Re: Get the parent message in Dialog
#139666
Author: MLC
Date: Sun, 21 Dec 2003 10:35
22 lines
2139 bytes
Il 21/dic/2003 Enrico Bauer ha scritto:

> 20.12.2003 15:34:02, *MLC*:
> 
>> However it is not a single key script, because after the assigned hotkey
>> (backspace for me) you have to press also Ctrl-V and Enter:
> 
> If it's only that, add at the end of your script:
> 
> // Ctrl-V
> PostKey(86, false, false, true, false, false, false, false, false);
> // Enter
> PostKey(13, false, false, false, false, false, false, false, false);
> 

I had already tried it. Unfortunately it doesn't work, maybe because the
"Message-ID handle" window is modal and doesn't receive events via script.
I think it would be necessary some lower level function. (?)
Grazie,
-- 
Maria Luisa C - 21/12/2003 11.24.51, here.
http://fido.altervista.org/
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