🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #259657

Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?

#259657
From: Bernd Rose
Date: Tue, 13 Oct 2015 18:16
81 lines
5789 bytes
On Tue, 13 Oct 2015 11:36:15 -0500, VanguardLH wrote:

[OnTimer2 script to load headers/bodies]
>> 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)?

I honestly don't know. Maybe just set the timer /lower/ than one second 
(but high enough to /not/ cause conflict in normal circumstances) and 
then subscribe a new high-traffic group? Although you need to clean up
the Dialog database, afterwards, (i.e.: unsubscribe + compact database),
this should give you an idea, whether there /may/ be potential problems 
in high-traffic situations. If that's the case, then better choose a
higher timer value. If not, I'd still revert back to that second.

From my own experiences when watching Dialog at work, I guess it is sth.
from both: Dialog downloads a bunch of headers, applies Scoring&Actions,
loads the next bunch, and so on. This normally is just not noticeable,
because that "bunch" is probably quite big. Since I don't have many
filter lines, myself, I can't test their duration, myself...
 
> 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?

;-----------------------------------------------------
Program Test;
Begin  
 ADo('FindMessageID');
 ADo('GetNewHeadersInSelectedGroups')
End.
;-----------------------------------------------------

From result I'd say: Synchronous.  ;-)

> Does GetNewHeadersInSubscribedGroups "mark" any newly retrieved headers
> so GetMarkedMessageBodies will work?  What does "mark" mean in this
> context?  

"Mark" is done by the Scoring&Actions line:
[*]
!markread,copy(Repository),mark,markunread bytes %>0

while filtering the retrieved headers. Set up more detailed conditions 
and you may not need to fetch /all/ bodies. This "Mark" command is
similar to the Message->Mark menu command.

> 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?

To be on the safe side, I's say better disable that setting.
 
>> [*]
>> !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?

Shouldn't make any difference, IMHO.

Bernd
Technical Details
Message-ID: <1b3p8q9d9q744$.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
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> <d84q7vFn050U1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <1b3p8q9d9q744$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Date: Tue, 13 Oct 2015 20:16:58 +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> <n1r5l60hrl0k$.dlg@b.rose.tmpbox.news.arcor.de> <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-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 81
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net xHz5D/u4A9h8Ru2tHBa6UEba8IxqAP899p5GVAwZKL9lZ6GM3+iE/iFrVJBpx8r+DuHe9ZwTC8Te/hfADN58ovcvMVkiv/A3fXOfg5junmJJIX/Fp/zRIxWRMKYlExMw
NNTP-Posting-Date: Tue, 13 Oct 2015 18:16:59 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="6kpb3b/X4j5jL+PiF3Ayv7iPHmq6Ixo5E1yxcbb3VevJACbGXICjPSQg17XU4+G0g+u9JCYh4iJHhuubIxJqGO9u6VTJq6aKNyo93XAyFNM4eM3lSVQ/t+Uwdq8Qd9nl"; mail-complaints-to="abuse@albasani.net"
User-Agent: 40tude_Dialog/2.0.15.41 (3be57eee.19.332)
Cancel-Lock: sha1:4BZJo+j7hVLI4Vi2skVXblQbPYQ=
X-Received-Bytes: 5621
X-Received-Body-CRC: 3896366481