Article View: news.software.readers
Article #259640Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
From: Bernd Rose
Date: Mon, 05 Oct 2015 18:43
Date: Mon, 05 Oct 2015 18:43
57 lines
3717 bytes
3717 bytes
On Sun, 4 Oct 2015 21:11:04 -0500, VanguardLH wrote:
>> There /may/ be a way. ;-)
[...]
> I think that workaround would work only if the the timer to get marked
> messages was shorter than the timer to retrieve new headers. [...]
> Alas, at some point, both timer1 and timer2 would coincide.
You misread the code. ;-) In my script Timer1 was started every time
Timer2 was finished loading the headers. And Timer1 was stopped every
time it was executed itself. So the time difference would have been
always the same.
But this isn't important, anymore, because I got the idea of a better
version requiring only one timer. Replace your code for Timer2 with the
following version:
;----------------------------------------------
program OnTimer2;
procedure OnTimer2;
begin
timer2.enabled:=false;
if timer2.interval=60000*5 then
begin
ADo('GetNewHeadersInSubscribedGroups');
timer2.interval:=1000;
end
else
begin
ADo('GetMarkedMessageBodies');
timer2.interval:=60000*5;
end;
timer2.enabled:=true;
end;
begin
end.
;----------------------------------------------
Because the timer is turned off before retrieving headers or marked
bodies, there should be no problem, when loading either of them takes
a bit longer. Poll interval isn't 5 minutes, anymore, but 5 minutes
plus 1 second plus time required for both download processes.
Even better would have been to call GetMarkedMessageBodies right after
GetNewHeadersInSubscribedGroups. Unfortunately, this doesn't work. (Even
when GetMarkedMessageBodies was run by ADoLater instead of ADo. The
bodies would still have been retrieved, but only on the next Timer run.
Don't forget to adjust the Scoring&Actions entry to:
[*]
!markread,copy(Repository),mark,markunread bytes %>0
HTH.
Bernd
Technical Details
Message-ID:
<n1r5l60hrl0k$.dlg@b.rose.tmpbox.news.arcor.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.(126883).mbox.7z!not-for-mailReferences:
<d6optbFjbkcU1@mid.individual.net> <18x37jj2k3tuj.dlg@b.rose.tmpbox.news.arcor.de> <d6prtfFqtfaU1@mid.individual.net> <xmtv98kwnp60$.dlg@b.rose.tmpbox.news.arcor.de> <d6qkb8F2i48U1@mid.individual.net> <1im02jq0il8ly$.2ye0mpql50be$.dlg@40tude.net> <d7batdF8r4fU1@mid.individual.net> <19a05emalh5k9.dlg@b.rose.tmpbox.news.arcor.de> <d7c4asFea6gU1@mid.individual.net> <d7c61kFenquU1@mid.individual.net> <d7c6r4Fetr1U1@mid.individual.net> <3y5ks5yihoo7$.dlg@b.rose.tmpbox.news.arcor.de> <d7creeFk3ksU1@mid.individual.net> <1h9doioce7rs4.dlg@b.rose.tmpbox.news.arcor.de> <d7d3krFm7hkU1@mid.individual.net> <15k5h2pvspop4$.dlg@b.rose.tmpbox.news.arcor.de> <d7e4hqFu556U1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <n1r5l60hrl0k$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles? Date: Mon, 5 Oct 2015 20:43:15 +0200 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <d6optbFjbkcU1@mid.individual.net> <18x37jj2k3tuj.dlg@b.rose.tmpbox.news.arcor.de> <d6prtfFqtfaU1@mid.individual.net> <xmtv98kwnp60$.dlg@b.rose.tmpbox.news.arcor.de> <d6qkb8F2i48U1@mid.individual.net> <1im02jq0il8ly$.2ye0mpql50be$.dlg@40tude.net> <d7batdF8r4fU1@mid.individual.net> <19a05emalh5k9.dlg@b.rose.tmpbox.news.arcor.de> <d7c4asFea6gU1@mid.individual.net> <d7c61kFenquU1@mid.individual.net> <d7c6r4Fetr1U1@mid.individual.net> <3y5ks5yihoo7$.dlg@b.rose.tmpbox.news.arcor.de> <d7creeFk3ksU1@mid.individual.net> <1h9doioce7rs4.dlg@b.rose.tmpbox.news.arcor.de> <d7d3krFm7hkU1@mid.individual.net> <15k5h2pvspop4$.dlg@b.rose.tmpbox.news.arcor.de> <d7e4hqFu556U1@mid.individual.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.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 57 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net /Th2lQD2caTzdaW+8PeUBUicS1y14ca5aliMOy00LlWL71R/EkahZZYuFIsyXHY0A3qg4BH/hnz3CBcw88f+aA== NNTP-Posting-Date: Mon, 5 Oct 2015 18:43:14 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="CSuqOElCUbH7JtCT/hQtKxTO2yDXFK5dgt/9kxmzwLZWYC/bkJxRvu/mfjB9p7bLNp2M6ETkQ0F1EZ1NEvTSyftIYwxjsWAzPDPd6uVSeV35M6kZ9mvcFlY7nvXU1h6t"; mail-complaints-to="abuse@albasani.net" User-Agent: 40tude_Dialog/2.0.15.41 (139db698.236.435) Cancel-Lock: sha1:1sz2/UVpWsId3cRH1TF9Z3iPCTI= X-Received-Body-CRC: 3273097526 X-Received-Bytes: 3650