Article View: news.software.readers
Article #259633Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
From: VanguardLH
Date: Mon, 05 Oct 2015 02:11
Date: Mon, 05 Oct 2015 02:11
87 lines
5820 bytes
5820 bytes
Bernd Rose wrote:
> On Sun, 4 Oct 2015 11:49:29 -0500, VanguardLH wrote:
>
>> So I'm running into a mutually exclusive wall with Dialog.
>
> There /may/ be a way. ;-)
>
> You said, that you don't use timer1, at the moment. So you can take
> this one to retrieve bodies for marked messages:
>
> ADo('GetMarkedMessageBodies');
> timer1.enabled:=false;
>
> Your timer2 routine can be expanded to enable timer1:
>
> ADo('GetNewHeadersInSubscribedGroups');
> timer1.interval:=1000;
> timer1.enabled:=true;
>
> Depending on the amount of headers usually retrieved in one go you
> might need to adjust the interval upwards.
>
> And in Scoring&Actions the new line is:
>
> [*]
> !markread,copy(Repository),mark,markunread bytes %>0
>
> For me this works as expected, i.e. headers are retrieved and are copied
> "read" to Repository. In the original folder they are set "unread" and
> "marked". As soon as Timer1 chimes in, the bodies appear in Repository
> as in the original newsgroup; in the former one "read" in the latter
> "unread".
>
> Bernd
I think that workaround would work only if the the timer to get marked
messages was shorter than the timer to retrieve new headers. That is,
if the marked messages were retrieved before getting the rest of the
messages then the 'mark' in the filters list would work. Alas, at some
point, both timer1 and timer2 would coincide.
I've run into this before where I could not concurrently poll the same
server for different e-mail accounts. Concurrently polling resulted in
some error (a security issue, the same IP having multiple connects to
the server, etc). So I would use numbers, usually primes, at large
enough values so the accounts usually got polled individually. However,
at some point, these interval would coincide. If I used 7, 13, and 23
minutes for polling intervals on 3 accounts, their polls would coincide
at every 7 * 13 * 23 = 2093 minutes (about every 35 hours). Sounds okay
in only one mail poll would fail except that is for coincidence on 3
accounts. Coincidence would also occur for 7 * 13 = 91, 7 * 23 = 161,
and 13 * 23 = 299 minutes. So at 91, 161, 299, and 2093 minute
intervals, 2 or 3 accounts were concurrently polled (and there would be
an error). Still, for e-mail, 30 failed mail polls per day was
tolerable.
The problem with doing the same in Dialog is that occasionally on the
coincidence interval a message could get into the Repository folder that
was not marked read. So I could get used to the Repository gettng
bolded on almost every use of Dialog and at every polling interval or I
would sometimes see that folder get bolded and wonder why (since I'd
probably forget about the script workaround after awhile). With timer1
set to 1000 (1 second - which could easily keep Dialog way too busy and
slow it down) and timer2 set to 60000 * 5 (5 minutes), it seems every 5
minutes the two timers would collide and I could get an unmarked message
into the Repository folder. 1000 milliseconds for 1 second polling
interval seems way too short. I could up it to 60000 * 1 for 1-minute
polling intervals but still there would be a collision at the 5-minute
interval for the other timer. Seems I'd be vulnerable to an unmarked
message creeping into the Repository folder every 5 minutes.
Also, retrieving message more frequently (than the now configured
5-minute polling interval) means running through the filters a lot more
often. I've compiled the filters list over years and it now has about
642 filters, excluding all the comment lines. When Dialog runs through
its 2 passes, I can see it is taking time to progress through all the
filters in the 1st pass and the remaining filters in the 2nd pass. I
only visit text-only newsgroups and the incremental count of new
articles doesn't make we wait long to run through all the filters;
however, a lot more polls would definitely slow down Dialog. Plus the
collision of timers would still end up with some unmarked messages in
the Repository folder.
But thanks for the idea for a workaround. The configurability via
scripting and robust filtering (after retrieving bodies) of Dialog is
what keeps me using it.
Technical Details
Message-ID:
<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-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>Show Full Headers
Complete Article Headers
Message-ID: <d7e4hqFu556U1@mid.individual.net> Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles? Date: Sun, 4 Oct 2015 21:11:04 -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> 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: 87 Sender: VanguardLH <> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net RX2V1zthDLM1R2QQhmnblwz8Eawzf4TUENnHZco6FRPgDjIRcj Keywords: VanguardLH VLH811 Cancel-Lock: sha1:pQ0YkDoL0hNzFRqi8oE6u27GpXc= User-Agent: 40tude_Dialog/2.0.15.41 X-Received-Bytes: 5603 X-Received-Body-CRC: 2227338643