🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #151869

Re: [Dialog] How to exclude the 'inbox' or 'sent' folders within a script

#151869
From: Alain GUERIN
Date: Fri, 16 Jul 2004 09:20
29 lines
2575 bytes
Hello,


On Mon, 12 Jul 2004 06:55:16 +0100, Les Hay wrote:


> This works fine, and I use it all the time. However, I only want it to
> work in a newsgroup folder header pane and not in (say) the 'sent'
> folder header pane.

> How can I go about checking and exiting the script if the current
> headerlistpane is a particular view (say) 'sent' folder contents?

Imo, there are two ways : 

the first, you create a category for the groups that can be treated by
your script and you select the category before running your script (there
are even tricks to select a category by script)
the second needs to change your script and do one script that select the
groups one by one in the group window and works on each group separately,
if it is not a one you want not to treat.
To know which group is treated, you have to use routines with the
clipboard, to jump to the next group, you have to use routines simulating
a send key. You also have to detect the last group name, then go back to
the first one and then treat each group until you reach the last one.

So I think the first way is the shorter.
-- 
A.G.
Technical Details
Message-ID: <fq33j02z1c5x$.dlg@alain-guerin.com>
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!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news2-e.free.fr!not-for-mail
References: <59c693oop5hf$.1i9cai96u98dw.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <fq33j02z1c5x$.dlg@alain-guerin.com>
Subject: Re: [Dialog] How to exclude the 'inbox' or 'sent' folders within a script
Date: Fri, 16 Jul 2004 11:20:24 +0200
From: Alain GUERIN <courriels40@alain-guerin.com>
References: <59c693oop5hf$.1i9cai96u98dw.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!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news2-e.free.fr!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.12.1 (13b55f29.447.428)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Reply-To: news40@alain-guerin.com
Organization: NA
Archive: no
X-Face: '*&f@caq/y%f)QY'BcSO`EQH}'>nCphQ%q>YfG1"zCmQAa]-,
 ^B1-<u0)r)}QS_wzU)5`a`
 %|NRB0OU/Q><ozTuEx.M+[fx'?9U\Ojwtt>FBPmKGeE=.(/%Gv4+w/T9UqY}e]~jQzpXe&"V84G%al
 +i$O, EHjhE.c[7qzp+C4VL<
Mail-Copies-To: never
X-No-Archive: yes
Lines: 29
NNTP-Posting-Date: 16 Jul 2004 11:20:27 MEST
NNTP-Posting-Host: 81.56.129.86
X-Trace: 1089969627 news2-e.free.fr 4226 81.56.129.86:1225
X-Complaints-To: abuse@proxad.net