Article View: news.software.readers
Article #222824Re: [dialog] re-installation
From: Ron Ford
Date: Thu, 03 Jul 2008 21:35
Date: Thu, 03 Jul 2008 21:35
59 lines
2414 bytes
2414 bytes
On Thu, 3 Jul 2008 04:08:57 -0500, Eggs Zachtly posted:
> Ron Ford said:
>
> [...]
>>
>> 6) How do I configure dialog to emulate OE's capability to check for
>> messages on start-up and then every 30 minutes thereafter? This is alikely
>> to be a question covered in the .chm help, so a reference thereto would
>> suffice.
>
> http://www.40tude.com/dialog/wiki/index.php/ScriptFetchByInterval
Thanks, Eggs. I thought I was out of my depth on this one but I think that
I got it.
I pasted the bodies of the following into the event scripts:
program OnStartup;
procedure OnStartup;
begin
ADo('GetNewHeadersInSubscribedGroups');
ADo('GetNewEmailsForAllIdentities');
//Mails
timer1.interval:=60000*5;
timer1.enabled:=true;
//News
timer2.interval:=60000*30;
timer2.enabled:=true;
end;
begin
end.
And the second part for OnTimer1 (getting the mails):
program OnTimer1;
procedure OnTimer1;
begin
ADo('GetNewEmailsForAllIdentities');
end;
begin
end.
And the third part for OnTimer2 (getting the news):
program OnTimer2;
procedure OnTimer2;
begin
ADo('GetNewHeadersInSubscribedGroups');
end;
begin
end.
I then compiled OnStartup, and voila, it retrieved my e-mails and new
headers. What is the purpose of the extra
begin
end.
in all these scripts?
--
Technical Details
Message-ID:
<nxhva3xxgbht.1ibom6ni2doe.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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<47c3j4jyyl3r$.7lybljvsx9gh.dlg@40tude.net> <l7s8y2st7qmf.4fxcjeq54bze$.dlg@40tude.net> <17hk2icfvis9a$.kiw0xg00lnt4$.dlg@40tude.net> <1xtmy70abvoee$.dlg@sneupie.eingang.org>Show Full Headers
Complete Article Headers
Message-ID: <nxhva3xxgbht.1ibom6ni2doe.dlg@40tude.net> Subject: Re: [dialog] re-installation Date: Thu, 3 Jul 2008 15:35:34 -0600 From: Ron Ford <ron@nowhere.net> References: <47c3j4jyyl3r$.7lybljvsx9gh.dlg@40tude.net> <l7s8y2st7qmf.4fxcjeq54bze$.dlg@40tude.net> <17hk2icfvis9a$.kiw0xg00lnt4$.dlg@40tude.net> <1xtmy70abvoee$.dlg@sneupie.eingang.org> 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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 59 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net KuIfCpganWqQ7WyHi7IHjAg9NMbFGDrkXpByee3h0BfehbwfL6 Cancel-Lock: sha1:3/WX+I2cQtdvOz6wrmdq91rj8Pk= User-Agent: 40tude_Dialog/2.0.15.84