๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #128363

Re: [dialog] Mark thread as read

#128363
From: Alain GUERIN
Date: Fri, 11 Jul 2003 13:02
65 lines
3278 bytes
Hello,

On Thu, 10 Jul 2003 11:58:17 +0200, Marcus Mรถnnig wrote:

> On Thu, 10 Jul 2003 00:31:37 -0400, Liz Albin wrote:
> 
>> I'm dissatisfied however.  Is there a way for me to tell whether the
>> thread was expanded when I started?  I'd like to leave it in its
>> original state.
> 
> There is no way yet to get information about the selected message, so you
> don't know it's initial expansion state. I still have to implement access to the
> messages in scripts.
> 

If I understand well the problem, there is perhaps a work around with
something like the following script, but please don't stop the foreseen
implementation if my tip is working:  ;-)

uses 
   Forms, 
   StdCtrls;

                    
CONST
   filename = 'C:\Mes documents\test\Test.txt';
VAR
   Chaine : string;
   list: TStringList;
   index : integer; 
   NotOpenBracket : boolean;
   DummyEdit : TEdit;

BEGIN
   ADo('Copy');
   DummyEdit := TEdit.create(nil);
   DummyEdit.Parent := Application.Mainform;
   DummyEdit.PasteFromClipboard;
   Chaine := DummyEdit.Text;
   DummyEdit.free;
   IF Chaine > '' THEN
   BEGIN         
      list := TStringList.Create();
      IF fileexists(filename) THEN
         list.LoadFromFile(filename);
      list.add(Chaine);
      list.SaveToFile(filename);
      list.free;
      beep
   END    
END.

As, it is extracted from another stript copying selected groupname name in a
file, it has to be adapted to your purpose. 

If the thread is expanded, Chaine will be something like:
	4	[dialog] Mark thread as read (Liz Albin)	10/07/2003 02:03:54
and if not expanded, something like that:
	[13]	[dialog] Mark thread as read (Liz Albin)	10/07/2003 02:03:54

So it will not be very difficult to analyse the line and have a boolean
function telling you if it is expanded or not.

-- 
A.G.
Technical Details
Message-ID: <3f0eb579$0$26580$626a54ce@news.free.fr>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!nntp1.fuse.net!easynet-monga!easynet.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
References: <beiaha$f2f$1@bob.news.rcn.net> <t18wvjtptoxu.dlg@tandelshome.attbi.invalid> <beiq7a$rat$1@bob.news.rcn.net> <yze087iselv1$.dlg@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <3f0eb579$0$26580$626a54ce@news.free.fr>
Subject: Re: [dialog] Mark thread as read
Date: Fri, 11 Jul 2003 15:02:43 +0200
From: Alain GUERIN <news40@spamout-alain-guerin.com.invalid>
References: <beiaha$f2f$1@bob.news.rcn.net> <t18wvjtptoxu.dlg@tandelshome.attbi.invalid> <beiq7a$rat$1@bob.news.rcn.net> <yze087iselv1$.dlg@40tude.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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!nntp1.fuse.net!easynet-monga!easynet.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
Newsgroups: news.software.readers
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 8bit
Reply-To: news40@alain-guerin.com
Organization: NA
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<
User-Agent: 40tude_Dialog/2.0.5.1
Lines: 65
NNTP-Posting-Date: 11 Jul 2003 15:02:50 MEST
NNTP-Posting-Host: 62.147.80.219
X-Trace: 1057928570 news3-1.free.fr 26580 62.147.80.219:1398
X-Complaints-To: abuse@proxad.net