🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #139651

[Dialog] Scripting, iterating over the message tree

#139651
From: Warwick
Date: Sun, 21 Dec 2003 03:56
44 lines
2293 bytes
Hi,

I'd like to iterate over the messages in a newsgroup (or groups) ..
Program Iter;    
 uses TextFile;
 var aForm:TForm;  
 
 begin  
 lockdisplay;
 try
    var bool:done;
    done = false;	
    // need an end of group marker 
    while(!done)
    {	    
    	ADo('ExpandAllThreads');
    	ADo('FirstMessage');
    	// TNewsMessage *mess = new TNewsMessage( )
    	// 	procMess(mess);
    	// output Poc to text file here
        //if (mess == lastMess)
        //	done = true;  
    	// delete mess;
    
    	ADo('NextMessageInHistory');
    }   //while	  
finally
unlockdisplay;
end;
End.  

As you can see I want access to the currently selected news message object
and its body and header fields to parse a group for statistics etc.
How do I do this? Can it be done?

pls forgive the C style code - I am familiar with CBuilder which makes a
lot of the Delphi stuff very familiar - but I can crash course myself what
I need to know in pascal fairly easily I think.


finally top marks to the author. This is powerful and flexible software.

cheers
Warwick
Technical Details
Message-ID: <1ni8cjn1822o8.1o7hzlb4gp8ex.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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!tdsnet-transit!newspeer.tds.net!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <1ni8cjn1822o8.1o7hzlb4gp8ex.dlg@40tude.net>
Subject: [Dialog] Scripting, iterating over the message tree
Date: Sun, 21 Dec 2003 16:56:57 +1300
From: Warwick <wjcb@extra.co.nz>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!tdsnet-transit!newspeer.tds.net!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.8.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 44
NNTP-Posting-Host: 203.96.104.159
X-Complaints-To: newsadmin@xtra.co.nz
X-Trace: news.xtra.co.nz 1071979012 203.96.104.159 (Sun,
NNTP-Posting-Date: Sun, 21 Dec 2003 16:56:52 NZDT
Organization: Xtra