Article View: news.software.readers
Article #259656Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
From: VanguardLH
Date: Tue, 13 Oct 2015 16:36
Date: Tue, 13 Oct 2015 16:36
88 lines
5744 bytes
5744 bytes
Bernd Rose wrote:
> 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.
Got some time to play with this again.
Would that always be 1 second after the GetNewHeadersInSubscribedGroups
completed? With all the filters that I have, would that be enough time
to process them all? Sure doesn't seem like it when I watch the
progress meter at the bottom. Currently I have 642 filters. Wouldn't
they all get exercised against any headers retrieved by the
GetNewHeadersInSubscribedGroup function? Does that function pause
execution of the script until all new headers got retrieved AND after
processing all filters (those that test on the overview headers)?
At the 5-minute test point (60000*5), only the if's 'then' clause gets
executed which changes the loop interval to 1 second. So 1 second later
the if's 'else' clause gets ran which resets to the 5-minute interval.
Okay, so timer2 will run at: 5 minute, 5 minute plus 1 second. Is only
1 second going to be enough time to run all filters against all headers
retrieved by GetNewHeadersInSubscribedGroups? There are 642 filters.
Some test on non-overview headers so I'm assuming those get skipped in
pass 1 but the rest would get exercised against the newly retrieved
headers. Is ADo() a synchronous or asynchronous function? That is,
will the script wait until the method called by ADo has completed or
will ADo merely call the method and then exit so the script does not
wait for the called method to complete? If ADo is synchronous (exit
waits until called method has completed), does the called method
(GetNewHeadersInSubscribedGroups) include exercising the filters against
all newly retrieved headers before that method exits?
Does GetNewHeadersInSubscribedGroups "mark" any newly retrieved headers
so GetMarkedMessageBodies will work? What does "mark" mean in this
context? It can't waiting for me to mark which messages to download
after headers have been retrieved (via the "Online -> Get marked message
bodies" menu). Does GetNewHeadersInSubscribedGroups include marking all
newly retrieved message (headers only, at this point)? And does
GetMarkedMessageBodies unmark all those newly retrieved messages?
Since this script runs GetMarkedMessageBodies, should I disable the
option in Dialog to "retrieve bodies for all new messages" (a group
setting)? Seems the script would now go get the message bodies (all
headers plus body) and the Dialog option could interfere with the
script. That is, with the "retrieve bodies for all new messages"
enabled, wouldn't Dialog retrieve the bodies of new messages when the
script ran GetNewHeadersInSubscribedGroups? Or is the option ignored
when this "headers" method got called?
> 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
I have those still in my filters but as 3 separate lines (back from when
I was trying to determine why one line with all 3 actions did not work).
is that okay or should I go back to the 1 line with 3 actions?
Technical Details
Message-ID:
<d84q7vFn050U1@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-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> <n1r5l60hrl0k$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <d84q7vFn050U1@mid.individual.net> Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles? Date: Tue, 13 Oct 2015 11:36:15 -0500 From: VanguardLH <V@nguard.LH> 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> <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-mail Newsgroups: news.software.readers Organization: Usenet Elder Lines: 88 Sender: VanguardLH <> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net bja8nRPGHPe1ExWsdn82vw9F3raUs+4jZv5i+KFHtL7D8wrQCq Keywords: VanguardLH VLH811 Cancel-Lock: sha1:gFs9xk9IOSVjFUXVPWME927NuHs= User-Agent: 40tude_Dialog/2.0.15.41 X-Received-Body-CRC: 516394924 X-Received-Bytes: 5685