🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #113207

Re: [Dialog] Let's talk about Scripts :)

#113207
From: Rick Swartz
Date: Sat, 02 Nov 2002 01:48
42 lines
2070 bytes
On Fri, 1 Nov 2002 20:28:44 -0500, Yeff wrote:

> I'd really like a script to download all headers on startup
> and also one to get them at 5 minute intervals (like I have
> Gravity set up to do).

Here's a variation of a script Tarkus posted. Check 
<94g9ce11pqp0$.dlg@tarkus.karnevil9.com> for the full message. Only thing 
changed is the line to get new headers besides fetching mail.

Here is the first part for OnStartup:

program OnStartup;

procedure OnStartup;
begin
ADo('GetNewHeadersInSubscribedGroups'); //Gets new headers at startup
ADo('GetNewEmailsForAllIdentities'); //checks mail at startup
timer1.interval:=60000*5; //every 5 minutes
timer1.enabled:=true;
end;

begin
end.


And the second part for OnTimer1:

program OnTimer1;

procedure OnTimer1;
begin
ADo('GetNewHeadersInSubscribedGroups');
ADo('GetNewEmailsForAllIdentities');
end;

begin
end.

-- 
Rick S.
Technical Details
Message-ID: <455g38zcjmrl$.dlg@swartz.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!pd9e4ba60.dip.t-dialin.NET!not-for-mail
References: <d0q20vtejrao.dlg@tarkus.karnevil9.com> <apv9od$pgj$1@bob.news.rcn.net>

Show Full Headers
Complete Article Headers
Message-ID: <455g38zcjmrl$.dlg@swartz.de>
Subject: Re: [Dialog] Let's talk about Scripts :)
Date: Sat, 2 Nov 2002 02:48:53 +0100
From: Rick Swartz <admin@swartz.de>
References: <d0q20vtejrao.dlg@tarkus.karnevil9.com> <apv9od$pgj$1@bob.news.rcn.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!pd9e4ba60.dip.t-dialin.NET!not-for-mail
Newsgroups: news.software.readers
Organization: http://www.swartz.de
Lines: 41
Reply-To: admin@swartz.de
NNTP-Posting-Host: pd9e4ba60.dip.t-dialin.net (217.228.186.96)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1036201734 5646418 217.228.186.96 (16 [98946])
X-kook-of-the-month: Kooky-Kent-Prescott
X-clueless-newbie-of-the-decade: Kooky-Kent-Prescott
X-FOAD: Kooky-Kent-Prescott
User-Agent: 40tude_Dialog/2.0.2.1 (587a79fa.471.141)