Article View: news.software.readers
Article #152031Re: [Dialog] How to exclude the 'inbox' or 'sent' folders within a script
From: Alain GUERIN
Date: Sun, 18 Jul 2004 17:40
Date: Sun, 18 Jul 2004 17:40
33 lines
2956 bytes
2956 bytes
Hello, On Fri, 16 Jul 2004 13:44:46 +0100, Les Hay wrote: >> 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? When "you" are in the group window, you can copy the line in the clipboard by using one of the clipboard routines you can find in many scripts in Wiki (http://www.40tude.com/dialog/wiki/index.php?title=General_scripts) like Program AnalyseMessages (that is mainly a program that test different features of the script language), or you can analyse the headers of the messages that are in the group, if they are newsgroup messages (header newsgroups). But, if I may insist, if you define a category "to be treated" for example and if you put all the groups or folders you want to treat in this category, and only these groups or folders, by definition you will have only valid targets in this category. One group or folder can be in more than one category. So it lets you organize your groups as you want and have this particular category only for running your script. HTH -- A.G.
Technical Details
Message-ID:
<18fo5gj0w7rqa$.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!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news3-e.free.fr!not-for-mailReferences:
<59c693oop5hf$.1i9cai96u98dw.dlg@40tude.net> <fq33j02z1c5x$.dlg@alain-guerin.com> <hrtoq5avof98.pdu37sayt8r5.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <18fo5gj0w7rqa$.dlg@alain-guerin.com> Subject: Re: [Dialog] How to exclude the 'inbox' or 'sent' folders within a script Date: Sun, 18 Jul 2004 19:40:08 +0200 From: Alain GUERIN <courriels40@alain-guerin.com> References: <59c693oop5hf$.1i9cai96u98dw.dlg@40tude.net> <fq33j02z1c5x$.dlg@alain-guerin.com> <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!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news3-e.free.fr!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.12.1 (2e9ef7c8.261.278) 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: 33 NNTP-Posting-Date: 18 Jul 2004 19:40:10 MEST NNTP-Posting-Host: 81.56.129.86 X-Trace: 1090172410 news3-e.free.fr 29426 81.56.129.86:2602 X-Complaints-To: abuse@proxad.net