🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #155482

Re: [Dialog] 'Collapse everything' script

#155482
From: Antonio 'Gandalf' Favata
Date: Sun, 12 Sep 2004 09:27
35 lines
2102 bytes
Je la 2004-09-12, Richard Townsend skribis:

> Can anyone help with a Dialog script to step through each subscribed
> newsgroup and execute 'collapse all threads' in each one?

Why do you want to collapse threads in a group you can't see? ;)
I guess you could achieve your wished result with this script, which
will collapse the threads every time you enter in a group. (It'll do
also some other things, but you can delete the corresponding actions
if you don't want them).

program OnGroupEntered;

procedure OnGroupEntered(Groupname: string);
begin

 try
  LockDisplay;
  ADo('RefreshView');
  ADo('FirstMessage');
  ADo('CollapseAllThreads');
  ADo('ArticlePane');
 finally
  UnlockDisplay;
 end;

end;

begin
end.
-- 
Fare Well! | Dialog ß36: http://snurl.com/dialog http://snurl.com/dlgfaq
G          | (una sorpresa in arrivo) ~ news:it.comp.software.newsreader
      ICQ# | Gerarchia it-alt.*: http://www.fiag.it ~ news:it-alt.config
  16553733 | Server: http://www.x-privat.org ~ http://www.mynewsgate.net
Technical Details
Message-ID: <1wiepmoftatxm.dlg@shadowfax.ithn.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.telebyte.nl!news.newsland.it!x-privat.org!not-for-mail
References: <erb72rs7m7mk.re03axrnl6qb$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <1wiepmoftatxm.dlg@shadowfax.ithn.net>
Subject: Re: [Dialog] 'Collapse everything' script
Date: Sun, 12 Sep 2004 11:27:53 +0200
From: Antonio 'Gandalf' Favata <gandalf@ithn.net>
References: <erb72rs7m7mk.re03axrnl6qb$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.telebyte.nl!news.newsland.it!x-privat.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.13.6it (8db743f6.508.47)
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Reply-To: gandalf@x-planet.org
Organization: FIAG
X-Cats: Merry & Pipino <http://snurl.com/miciotti>
X-Face: &]^_njQjKuBI.th%)W1+ESkFY4E:r*#8}rkHLF'QTLo, >mql9aGkV*, v.-,
 qVdu&8Xk(6K
Lines: 35
X-Complaints-To: abuse@x-privat.org