Article View: news.software.readers
Article #139662Re: [Dialog] Scripting, iterating over the message tree
From: Warwick
Date: Sun, 21 Dec 2003 09:55
Date: Sun, 21 Dec 2003 09:55
46 lines
2767 bytes
2767 bytes
On Sun, 21 Dec 2003 07:17:33 +0100, Alain GUERIN wrote:
> Hello,
>
>
> On Sun, 21 Dec 2003 16:56:57 +1300, Warwick wrote:
>
>
>> 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.
>
>
> Did you look at http://40tude.com/dialog/wiki/index.php/AnalyseMessages or
> http://40tude.com/dialog/wiki/index.php/NonAnsweredPosts?
>
> Go directly at the end of the scripts if you want to see only how the end
> of task marker is build.
>
> Scripts in Wiki will give you a lot of tips.
Ooops, no I had not looked at Wiki at all - thanks very much :)
btw I cannot run the script as it is, inifile error.
Looking over the code the inifile is read into a text file and the values
read from there. I take it we cannot access the IniFile methods and
properties from TIniFile?
ie
var ini:TIniFile
ini.ReadString("SectionName", "Key", "DefaultValue");
Will read the value for Section SectionName, Key=="key" if it does not
exist use "defaultValue".
Also if you create TIniFile and when run does not exist, it is created for
you.
Write commands likewise create the section and Key name if it does not
exist.
cheers
Warwick
Technical Details
Message-ID:
<meosqmsvvraq.qpwwrzn1dibd$.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!newsfeed1.easynews.com!easynews.com!easynews!feed1.news.rcn.net!rcn!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mailReferences:
<1ni8cjn1822o8.1o7hzlb4gp8ex.dlg@40tude.net> <1owfgo25a7glx.dlg@alain-gueirn.com>Show Full Headers
Complete Article Headers
Message-ID: <meosqmsvvraq.qpwwrzn1dibd$.dlg@40tude.net> Subject: Re: [Dialog] Scripting, iterating over the message tree Date: Sun, 21 Dec 2003 22:55:24 +1300 From: Warwick <wjcb@extra.co.nz> References: <1ni8cjn1822o8.1o7hzlb4gp8ex.dlg@40tude.net> <1owfgo25a7glx.dlg@alain-gueirn.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!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!newsfeed1.easynews.com!easynews.com!easynews!feed1.news.rcn.net!rcn!logbridge.uoregon.edu!arclight.uoregon.edu!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: 46 NNTP-Posting-Host: 203.96.104.159 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1072000517 203.96.104.159 (Sun, NNTP-Posting-Date: Sun, 21 Dec 2003 22:55:17 NZDT Organization: Xtra