๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #151872

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

#151872
From: Les Hay
Date: Fri, 16 Jul 2004 12:44
40 lines
3469 bytes
On Fri, 16 Jul 2004 11:20:24 +0200, Alain GUERIN wrote:

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

Thanks for your response. The main problem I have is in knowing how to
identify the currently select group or folder. If it is any of the
newsgroups there is no problem - I would let the script run. If it is
a folder (or inbox or sent etc) then I would want to exit the script
at that point without running the next part. How, within a script can
I identify which is current?

-- 
regards, Les Hay, Livingston, Scotland
Using 40tude Dialog, v 2.9.12.1 (beta 35), Softwareentwicklung
M.Mรถnnig revolutionary e-mail and news client:
http://www.40tude.com/dialog/download.htm
Technical Details
Message-ID: <hrtoq5avof98.pdu37sayt8r5.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.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!news-out2.nuthinbutnews.com!local!corp-news!not-for-mail
References: <59c693oop5hf$.1i9cai96u98dw.dlg@40tude.net> <fq33j02z1c5x$.dlg@alain-guerin.com>

Show Full Headers
Complete Article Headers
Message-ID: <hrtoq5avof98.pdu37sayt8r5.dlg@40tude.net>
Subject: Re: [Dialog] How to exclude the 'inbox' or 'sent' folders within a script
Date: Fri, 16 Jul 2004 13:44:46 +0100
From: Les Hay <leshayathome@REMOVEhotmail.com>
References: <59c693oop5hf$.1i9cai96u98dw.dlg@40tude.net> <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.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!news-out2.nuthinbutnews.com!local!corp-news!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Lines: 40
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support,
 spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing
 illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeed.com>
 You may also use our online abuse reporting from:
 http://www.newsfeed.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers,
 INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeed.com http://www.newsfeeds.com 100,
 000+ UNCENSORED Newsgroups.