Thread View: news.software.readers
47 messages
47 total messages
Started by VanguardLH
Sun, 27 Sep 2015 00:00
40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 27 Sep 2015 00:00
Date: Sun, 27 Sep 2015 00:00
32 lines
2826 bytes
2826 bytes
Seems when an article disappears from the NNTP server that Dialog deletes its local copy, too, to stay in sync. For some servers, articles disappear without good reason. They are not expiring but they disappear from the server (rebuilding the thread just issues a ding sound meaning there's nothing up on the server). For example, I have a discussion on Mozilla's NNTP server on how to disable Javascript in Firefox from the command line (which doesn't look possible so I'll have to script the edit of the prefs.js file before loading of Firefox). Several articles have disappeared. First mine disappeared. Then the parent posts (by others) started to disappear. The discussion that had something like a dozen posts is down to 3. I realize the Mozilla server is moderated (it takes awhile for new posts to appear) but even if the moderator doesn't like me questioning some of Mozilla's choice (no swearwords, just beratement), there would be no reason the parent posts by others should disappear. I don't think this is a new problem with Mozilla's server as I recall articles there that I read then disappearing a few days later (so I couldn't keep track of the discussion). The posts that are disappearing after just a couple days and the thread was started just yesterday so it's not like they are expiring. I've seen this before where an article disappears off the server, the client syncs to the server, sees the article is gone, and then deletes the local copy of the article. Is there any setting in Dialog that lets it retrieve new articles but not delete old ones, even if they become missing up on the server? Yes, I could setup something like Hamster but that's a lot of effort just to keep local copies of articles because they mysteriously disappear from the server. I haven't looked at Hamster for years. Is there a caching proxy that is simpler to setup than Hamster?
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: dunno
Date: Sun, 27 Sep 2015 03:22
Date: Sun, 27 Sep 2015 03:22
43 lines
3276 bytes
3276 bytes
VanguardLH <V@nguard.LH> wrote: > Seems when an article disappears from the NNTP server that Dialog > deletes its local copy, too, to stay in sync. For some servers, > articles disappear without good reason. They are not expiring but they > disappear from the server (rebuilding the thread just issues a ding > sound meaning there's nothing up on the server). For example, I have a > discussion on Mozilla's NNTP server on how to disable Javascript in > Firefox from the command line (which doesn't look possible so I'll have > to script the edit of the prefs.js file before loading of Firefox). > > Several articles have disappeared. First mine disappeared. Then the > parent posts (by others) started to disappear. The discussion that had > something like a dozen posts is down to 3. I realize the Mozilla server > is moderated (it takes awhile for new posts to appear) but even if the > moderator doesn't like me questioning some of Mozilla's choice (no > swearwords, just beratement), there would be no reason the parent posts > by others should disappear. I don't think this is a new problem with > Mozilla's server as I recall articles there that I read then > disappearing a few days later (so I couldn't keep track of the > discussion). The posts that are disappearing after just a couple days > and the thread was started just yesterday so it's not like they are > expiring. > > I've seen this before where an article disappears off the server, the > client syncs to the server, sees the article is gone, and then deletes > the local copy of the article. Is there any setting in Dialog that lets > it retrieve new articles but not delete old ones, even if they become > missing up on the server? > > Yes, I could setup something like Hamster but that's a lot of effort > just to keep local copies of articles because they mysteriously > disappear from the server. I haven't looked at Hamster for years. Is > there a caching proxy that is simpler to setup than Hamster? > There is a leafnode, but I'm not sure how well it will work on Windows. You'll probably need to install Cygwin to compile it. As far as I remember, Hamster is very easy to setup, so I would recommend to stick with it. -- dunno
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 27 Sep 2015 07:29
Date: Sun, 27 Sep 2015 07:29
28 lines
2593 bytes
2593 bytes
On Sat, 26 Sep 2015 19:00:37 -0500, VanguardLH wrote: > Seems when an article disappears from the NNTP server that Dialog > deletes its local copy, too, to stay in sync. No, it doesn't. Dialog only deletes local copies of already downloaded articles in cases of Cancel/Supersede. And even then, the header pane will still show the articles, IIRC. Just the bodies will be gone. (At least, when the messages have the Keep-flag attached.) This behavior is "by design" and cannot be altered. I don't remember, whether articles in folders are affected, as well. If not, you could duplicate (!copy action) any retrieved article into a folder (maybe one for each group) for later reference. To avoid Cancel you could use a server (either on the Net or by setting it up locally), that filters out all Cancel messages. Supersede, OTOH, should be left intact, though, because a Supersede will likely contain important additions/corrections. Therefore, you'd need to strip the supersede header on the (locally) interconnected server. (Or sth. like that...) Before you jump through all these hoops, I strongly suggest you to check the Purge settings for the Selected and Default group. Maybe you set here auto-delete times, that are too short for your needs. HTH. Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 27 Sep 2015 09:41
Date: Sun, 27 Sep 2015 09:41
140 lines
8624 bytes
8624 bytes
Bernd Rose wrote: > On Sat, 26 Sep 2015 19:00:37 -0500, VanguardLH wrote: > >> Seems when an article disappears from the NNTP server that Dialog >> deletes its local copy, too, to stay in sync. > > No, it doesn't. Dialog only deletes local copies of already downloaded > articles in cases of Cancel/Supersede. And even then, the header pane > will still show the articles, IIRC. Just the bodies will be gone. (At > least, when the messages have the Keep-flag attached.) This behavior is > "by design" and cannot be altered. <NOTE - Forget my mention of Mozilla problems> Forget about me referencing problems at Mozilla's server. For those newsgroups, it looks like they accept my submission when I reply but the submission never shows up on their NNTP server. Those are moderated newsgroups. There's nothing offensive or disruptive to my posts so I doubt any moderator is deleting my submissions (i.e., removing them from a pending queue before they actually get submitted to their server). Mozilla newsgroups are run as a mailing list and apparently it sometimes has problems with replies from NNTP clients. I do not participate there via e-mail. I use their NNTP server. Mozilla's mailing list doesn't seem reliable or it is losing NNTP-submitted posts that are replies but the e-mailed replies do show up. </NOTE> Back to Dialog and what happens when an article disappears (cancel or an articles database update that has problems) from the server ... "seems when an article disappears" is probably due to a cancel. If articles are lost because of some database update, the result is index numbers that are different after the rebuild which requires clients to flush old copies of articles and retrieve the newly reindexed copies. Even after such a reindexing, the articles don't disappear in the client but there are problems when trying to reply to the old copies. I'd see a message (i.e., Dialog retrieved the article) but later the article would disappear in Dialog. I had intended to respond later or wanted to lurk on the article to read the replies but cannot because Dialog doesn't have the article anymore. Poof, gone. If an article were only deleted locally (within Dialog), wouldn't the Rebuild Thread function in Dialog re-retrieve the article if it still existed on the server? That Dialog beeps at me on attempting a thread rebuild meant, I thought, that Dialog couldn't find the articles on the server with the parent MIDs listed in the References header. A cancel would delete a message at the server. Clients don't see those (except by looking in the control.cancel group). So what will Dialog do with its previous retrieved copy when the article disappears on the server (for whatever reason)? A server via peering will keep a newsgroup in sync but what does the client do? Doesn't the client also keep in sync by deleting its own local copy of the previously retrieved copy of the article that was later removed from the server? When I've seen articles disappear in Dialog, there was no header remnant of the article left in Dialog. I knew I saw the article, went back a day later, worked in some other newsgrous, went to the one to which I wanted to respond but it wasn't there. Maybe cancels were used to remove a disruptive's trolls post for violating the provider's TOS. Maybe a moderator decided later to get rid of a "bad" post. Whatever the reason, the post was there and then later it wasn't. Looks like Dialog keeps in sync with the server by deleting its own copy (but whether it retains a "header stub" of its local copy is not something that I've witnessed or maybe I just don't remember that). I don't have any filters that set the Keep flag. I never manually set the Keep flag. To continue seeing wanted messages when revisiting a group, the Ignore flag is NOT set. The Ignore flag may get set by filters but the message is NOT deleted. I don't delete messages via filters. I just hide them because I may have to look at them should someone else mention them. I also also set the Ignore flag on messages that I've read but have no interest in monitoring later. I don't want to use a Hide Read Messages view because then some get hidden when I still want to see them. I use a Hide Ignored Messages view by default so filtered-out or hidden messages (those with the Ignore flag) don't clutter the visible list of to-be-addressed messages. Ignore just means I don't want to see a message anymore. Since I do not delete any messages, I should see the hidden ones simply by switching to the All Messages view. For the articles that vaporized, that doesn't work to make them appear. Rebuild Thread doesn't work to re-retrieve the missing messages, either, so I'm assuming they are no longer on the server to re-retrieve. > I don't remember, whether articles in folders are affected, as well. > If not, you could duplicate (!copy action) any retrieved article into > a folder (maybe one for each group) for later reference. I remember seeing that trick mentioned to retain a local independent repository of articles. I thought that was to circumvent the client from removing messages that had later went missing on the server; i.e., keeping a separate copy was to obviate the client's synchronizing to the server. If the client did not delete its local copy after the article went missing on the server, a local independent repository would be superfluous. So, it seems to me that you are saying Dialog *does* sync to the server to remove local copies of articles that later disappear from the server. Cancels go the server, not the client. > To avoid Cancel you could use a server (either on the Net or by setting > it up locally), that filters out all Cancel messages. Supersede, OTOH, > should be left intact, though, because a Supersede will likely contain > important additions/corrections. Therefore, you'd need to strip the > supersede header on the (locally) interconnected server. (Or sth. like > that...) I was hoping that I wouldn't have to setup Hamster on my end. I would probably use the 'copy' action in a filter at the head of all my filters to always copy every article into a local by independent repository. I would have to remember to periodically manually run a purge operation to keep the "offline" repository from getting too big. > Before you jump through all these hoops, I strongly suggest you to > check the Purge settings for the Selected and Default group. Maybe > you set here auto-delete times, that are too short for your needs. In the menu Group -> Default Group Options (used for all groups), the purge times are: Purge messages with bodies: Read = 90 days Unread = 90 days Purge message with no bodies: Read = 30 days Unread = 30 days The thread was started just 2 days ago. While the purge times are non-zero, I haven't seen Dialog actually employ them unless I manually issue a purge operation. That is, the purging isn't automatic. I've seen articles sticking around in Dialog that are many months older than the purge times configured in Dialog. The overly old articles don't get removed in Dialog (they're obvioulsy still on the server) until I issue a purge in Dialog. When I happen to revisit a group (usually a low-volume one) and notice some really old articles way beyond the purge time, I manually run purge and only then do they disappear in Dialog.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 27 Sep 2015 13:31
Date: Sun, 27 Sep 2015 13:31
131 lines
7642 bytes
7642 bytes
On Sun, 27 Sep 2015 04:41:03 -0500, VanguardLH wrote: >>> Seems when an article disappears from the NNTP server that Dialog >>> deletes its local copy, too, to stay in sync. >> >> No, it doesn't. Dialog only deletes local copies of already downloaded >> articles in cases of Cancel/Supersede. And even then, the header pane >> will still show the articles, IIRC. Just the bodies will be gone. (At >> least, when the messages have the Keep-flag attached.) This behavior is >> "by design" and cannot be altered. [...] > "seems when an article disappears" is probably due to a cancel. If > articles are lost because of some database update, the result is index > numbers that are different after the rebuild which requires clients to > flush old copies of articles and retrieve the newly reindexed copies. Dunno about other clients. Dialog does /not/ reload articles after a server-side re-index. Dialog just adjusts LastServerMsgHigh (= locally saved last server index state). There are some buffer values involved (just in case several servers of a farm are slightly out-of-sync) and 2nd chance XOver may occur if only minor gaps are noticed in numbering. But /if/ Dialog adjusts its server index values, this will only have effects in background. MsgID's are compared to locally stored values. If a newly retrieved one is identical to one already retrieved in past, it just gets omitted. The old article copy inside the dialog database (body or not) will not be touched. IIRC, Dialog /always/ retrieves bodies by MsgID. Therefore, renumbering will have no effect on retrieving bodies even a long time after the headers have been retrieved. (As long as the server still /does/ carry the article...) > Even after such a reindexing, the articles don't disappear in the client > but there are problems when trying to reply to the old copies. Shouldn't. Referencing is always done by MsgID and group number(s), not by some index number. That's not only the case with clients, but on the server side, as well. > I'd see a message (i.e., Dialog retrieved the article) but later the > article would disappear in Dialog. When I consider what you wrote about your purge settings, I start to believe that you installed Dialog somewhere in a managed folder, where Dialog isn't able to correctly write its database. Articles should not get lost en masse without automatic purging... > That Dialog beeps at me on attempting a thread rebuild meant, > I thought, that Dialog couldn't find the articles on the server with the > parent MIDs listed in the References header. Reconstruct_Thread should only fail, if the MsgID's cannot be found on the server. Index has nothing to do with it. > A cancel would delete a message at the server. Clients don't see those > (except by looking in the control.cancel group). Or if you sent the Cancel message from your own Dialog. > So what will Dialog do with its previous retrieved copy when the > article disappears on the server (for whatever reason)? Nothing. It stays in its current state. > A server via peering will keep a > newsgroup in sync but what does the client do? Doesn't the client also > keep in sync by deleting its own local copy of the previously retrieved > copy of the article that was later removed from the server? No. At least not Dialog. (Other clients may show different behavior.) I've known some people, who used Dialog as an archive with unlimited retention. (While their servers only had a retention of several months.) Frankly spoken, Dialog is unfit for such a task. But not, because it auto-deletes articles when it has been purged on its source server. (As said above: Dialog doesn't do this.) > When I've seen articles disappear in Dialog, there was no header remnant > of the article left in Dialog. I knew I saw the article, went back a > day later, worked in some other newsgrous, went to the one to which I > wanted to respond but it wasn't there. Again: Sounds more like a database problem (UAC write problem or sth. like that) than anything else. > Since I do not delete any messages, I should see the hidden ones simply > by switching to the All Messages view. Yes. But don't forget to switch off any filter (tick-off the "Filter" checkbox), as well. > For the articles that vaporized, > that doesn't work to make them appear. Rebuild Thread doesn't work to > re-retrieve the missing messages, either, so I'm assuming they are no > longer on the server to re-retrieve. Try to retrieve them by Edit->Find_a_MsgID (copied from References header). First by doing a local search; if unsuccessful by retrieving from a newsserver. (Best into a different group or a folder, if you aren't sure about the state of the original one.) >> I don't remember, whether articles in folders are affected, as well. >> If not, you could duplicate (!copy action) any retrieved article into >> a folder (maybe one for each group) for later reference. > > I remember seeing that trick mentioned to retain a local independent > repository of articles. I thought that was to circumvent the client > from removing messages that had later went missing on the server; Wrong conclusion. > If the client did not delete its local copy after the article > went missing on the server, a local independent repository would be > superfluous. If /all/ messages of /one/ group are kept inside each folder and Supersede and (known-to-the-client) Cancel are left out, than indeed Folder archives are superfluous. Most people usually use them to store important subsets of all articles and maybe retrieve several groups into one folder. > I've > seen articles sticking around in Dialog that are many months older than > the purge times configured in Dialog. The overly old articles don't get > removed in Dialog (they're obvioulsy still on the server) until I issue > a purge in Dialog. When I happen to revisit a group (usually a > low-volume one) and notice some really old articles way beyond the purge > time, I manually run purge and only then do they disappear in Dialog. Since server retention time is of no importance, I again assume UAC problems, or the like... Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 27 Sep 2015 16:38
Date: Sun, 27 Sep 2015 16:38
178 lines
10471 bytes
10471 bytes
Bernd Rose wrote: > When I consider what you wrote about your purge settings, I start to > believe that you installed Dialog somewhere in a managed folder, where > Dialog isn't able to correctly write its database. Articles should not > get lost en masse without automatic purging... Been using Dialog for many years. For some programs, I do not put them under %programfiles%. Instead I created C:\Programs and put some programs there (Dialog, SysInternals, Nirsoft, etc). Since Vista and especially in Win7, the %programfiles% folder is more protected. Programs were expected to write to data files under an app data path, not in the program folder. Dialog runs from: C:\Programs\40tude Dialog I think Dialog's installer added the space for its install folder. Back under Windows XP, it was under C:\Program Files but I copied Dialog's folder to my own C:\Programs folder. That was over a couple years ago. I have full permissions in C:\Programs as do all admin-level accounts. Articles are not disappearing in Dialog en masse. Typically it's just one article (that I noticed) that I and no filters marked as ignored (so it continues being visible). I leave a message visible (not ignored), come back later, and it was gone. In fact, it appears some servers have some trolls they filter out. I'd see the message in Dialog and later it was gone. I figured Dialog was keeping in sync with the server and that the post got removed from the server. This has been a long time problem in Dialog that occasionally a message it had was later gone. Since Dialog is keeping in sync with the server, and if the message got removed from the server, I figured that's why the message disappeared in Dialog. The problems I've encountered in the Mozilla server just brought up my rememberance of this old problem so I wanted to find out how Dialog works (whether or not it syncs to the server). Sometimes good posts were disappearing but I didn't know why. > [Cancels effect only at the server.] Or if you sent the Cancel message > from your own Dialog. Never send cancels myself. No point since every NNTP server that I use will ignore them, anyway. >> So what will Dialog do with its previous retrieved copy when the >> article disappears on the server (for whatever reason)? > > Nothing. It stays in its current state. So now you're saying that Dialog retains it previously retrieved message even if that message gets removed from the server? Then what's the point of your suggestion to use the 'copy' directive if Dialog never syncs to the server (to remove articles in Dialog that have been removed from the server)? I have seen articles disappear often enough in Dialog to know it does happen. Rebuild doesn't re-retrieve the article so it's not on the server anymore. > Again: Sounds more like a database problem (UAC write problem or sth. > like that) than anything else. For one article disappearing in Dialog out of hundreds that were retrieved and stay in Dialog? Articles are not disappearing in Dialog en masse. About every few months I run a purge followed by a compact. I can understand why purging will make some articles disappear in Dialog. That's why I didn't purge very often and only for really old (over 3 month) articles because it would punch holes in a remaining thread (articles less than 3 months old). When I first started using purging many years ago, I was wondering why some threads were getting "holes" in them. I also do not delete messages because those holes can screw up the hierarchy of posts and I might think someone replied to the wrong person. For the other occasional disappearances, I figured Dialog was keeping in sync with the server but you say Dialog doesn't do a sync up. >> Since I do not delete any messages, I should see the hidden ones simply >> by switching to the All Messages view. > > Yes. But don't forget to switch off any filter (tick-off the "Filter" > checkbox), as well. Filters don't delete any messages. They only ignore-flag some messages which won't be seen (they are still there) in the Hide Ignored Messages view. Or are you talking about some other filters (rule filters), like view filters? The All view does not have any filters enabled so I to see all messages that are available in Dialog (all non-deleted messages). Since neither I or my filters (rules) delete any messages, all the ones retrieved by Dialog should still be there. > Try to retrieve them by Edit->Find_a_MsgID (copied from References header). > First by doing a local search; if unsuccessful by retrieving from a > newsserver. (Best into a different group or a folder, if you aren't > sure about the state of the original one.) Okay, will try that method. I didn't want to telnet into the server and try to figure out all the commands to see if the article was still on the server. Sometimes I'd use Google Groups to find the thread (more difficult now that Google removed all the search directives, like author and subject). I'd see the article wasn't there anymore so figured the article got cancelled (on its injection server) and peering removed it from other servers, and figured that it was gone on the servers so that was why it disappeared in Dialog. > Wrong conclusion [about using the !copy directive]. What is the point of duplicating an article then? If Dialog is not synching up to the server to remove articles in Dialog that have been deleted up on the server, why make duplicate copies of the articles in Dialog? Why would I need another copy of an article "for later reference" if Dialog never removes articles from itself that were removed from the server? Until you mentioned using !copy, I thought the purpose of !copy and !move were to emulate pseudo-virtual groups in Dialog. I'm lost now. If Dialog is not removing messages from its local store that have been removed from the server (i.e., Dialog always keeps a retrieved message no matter what is happening on the server), why would I need to keep a duplicate copy via !copy action? I'd be building a huge local repository of duplicate posts. > If /all/ messages of /one/ group are kept inside each folder and > Supersede and (known-to-the-client) Cancel are left out, than indeed > Folder archives are superfluous. But you said it didn't matter that an article disappeared from the server, that Dialog would retain its copy ad infinitum. > Since server retention time is of no importance, I again assume UAC > problems, or the like... UAC is enabled; however, Dialog is installed under C:\Programs, a folder that I created and to which I have full permissions. Before moving to Vista (short lived) and then Win7, I already heard about programs that would try to write into their install folder and run afoul of the Windows folder protection (which is actually separate of UAC). The disappearing messages in Dialog is not an everyday occurrence. I don't know on many messages are affected at the time. I only notice when a message I planned on reading or responding to later was gone in Dialog. Sometimes I marked Watched a thread in which I was participating but suddenly a message disappeared (and the hierarchy in Dialog got squashed). If I didn't notice the change or remember the posts, I might think someone was responding to the wrong parent post. When I'd go look at the thread at Google Groups, the message(s) weren't there so I figured there had been a cancel (on the injection server) which got reflected to the other servers via peering. That the message was no longer on the server is why I thought was why it was gone in Dialog. That was an assumption: Dialog got the message, the message disappeared later in Dialog, don't see the message in Google Groups so figured the message got cancelled, and figured Dialog synchronized to the server to remove its copy of the message removed from the server. But you're saying Dialog doesn't work that way: once retrieved into Dialog, what happens to the message on the server has no effect back in Dialog. With 3 months expiration on old articles when purging (which doesn't happen until I manually do the purge but messages disappear in Dialog long before that), with UAC and Win7 folder protection not involved (else the problem would be far more prevalent than for the occasional one or two disappearing messages over weeks of use), with the user never deleting messages but only marking them ignored, and with no filters (rules) with a !delete action, maybe I'm just hitting some bug that exhibits itself occasionally. When I see it happen, the message is gone on the server so I figured Dialog sync'ed up to the server to remove its own copy - but you say Dialog doesn't do that. Dialog only does retrieves from the server. It never syncs to cancels performed at the server, right? After Dialog retrieves an article from a server, that article will remain indefinitely in Dialog even if the article disappears from the server, right? If so, I'll have to investigate elsewhere on why messages that are removed from the server end up gone in Dialog. Doesn't happen often but enough to bug me.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 27 Sep 2015 19:08
Date: Sun, 27 Sep 2015 19:08
86 lines
6221 bytes
6221 bytes
On Sun, 27 Sep 2015 11:38:00 -0500, VanguardLH wrote:
[Disappearing articles in 40tude Dialog]
Since you seem to misunderstand nearly everything I wrote, here a summary:
* Dialog /never/ deletes messages and already loaded bodies, unless it
is told so
* Lost/deleted articles on server, re-indexing on server, etc. will /not/
make Dialog deleting messages or retrieved bodies
* Retrieving the /body/ of a supersede to a previously retrieved body /will/
delete the body of the message, that is superseded; the message will still
be shown in the header pane, though (with crossed "not available" symbol)
* Messages copied to a folder are safe from supersede-delete (I wrote you
should try; I tried it, myself, now: they /are/ safe)
* Canceling of messages on the server will /not/ delete any message or body
already retrieved in Dialog
* I wasn't sure, whether retrieving the body of a Cancel message (e.g. in
control.cancel) would be evaluated by Dialog; after testing: it is /not/;
therefore, the original messages will be left intact
* Testing, whether sending a Cancel message by yourself would locally
delete a message or its body, isn't necessary anymore, since you wrote
in your last message, that you never cancel yourself
=> This leaves Supersede-delete as only outside-driven source of delete
for an already retrieved message + body on your system
From all you wrote, Supersede isn't likely as source of your disappearing
messages. If maloperation by yourself is ruled out, this leaves
* Dialog purge settings -> you ruled them out in your first answer
* Dialog view & filter settings
-> You ruled out View settings by pointing out, that you unsuccessfully
tried the "All" view
-> This leaves the possibility of an active filter (cf. to the Filter
bar, which permits (view-)filtering messages by Subject, From, Date,
MsgID,...)
* UAC or other write-access problems -> ruled out by your last message
* Dialog database corruption
> So now you're saying that Dialog retains it previously retrieved message
> even if that message gets removed from the server? Then what's the
> point of your suggestion to use the 'copy' directive if Dialog never
> syncs to the server (to remove articles in Dialog that have been removed
> from the server)?
Because Dialog /locally/ evaluates control messages. I was sure about
Supersede, but wasn't about Cancel. You might have triggered a delete
by reading control.cancel. As it turned out, this doesn't effect the
messages/bodies already retrieved. And a quick test showed, that any
message copied to a folder /is/ safe from Supersede-delete. So, if
there /is/ one possibility of Cancel-delete left, that I don't think
of at the moment, it also could most likely be circumvented by
safe-copying messages to a folder. Whether the outcome is worth the
effort, is up to you, though...
> Sometimes I'd use Google Groups to find the thread (more difficult now
> that Google removed all the search directives, like author and subject).
> I'd see the article wasn't there anymore so figured the article got
> cancelled (on its injection server) and peering removed it from other
> servers, and figured that it was gone on the servers so that was why it
> disappeared in Dialog.
Apart from Googles internal database problems: Google doesn't show
messages tagged no-archive. Again, not sth. that can be related to
your problems, since Dialog doesn't evaluate no-archive. (And I take
it, you /don't/ have a script running, that removes such articles
after a couple of days?)
> Until you mentioned using !copy, I thought the purpose of !copy and
> !move were to emulate pseudo-virtual groups in Dialog. I'm lost now.
> If Dialog is not removing messages from its local store that have been
> removed from the server (i.e., Dialog always keeps a retrieved message
> no matter what is happening on the server), why would I need to keep a
> duplicate copy via !copy action? I'd be building a huge local
> repository of duplicate posts.
From my last message:
| Most people usually use them to store important subsets of all articles
| and maybe retrieve several groups into one folder.
The latter is the "virtual groups" approach you mentioned. The former
usually goes with a completely different kind of usage: Keep only the
latest (aka active) threads inside the "group folders". Interesting
("to be kept") messages are copied to one or several (often thematic,
/not/ group specific) folders. As soon as a thread gets uninteresting,
inactive, etc., the thread gets deleted completely. (For active threads
it is often good to keep the OP for a while - for trash collection...)
Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Mon, 28 Sep 2015 06:15
Date: Mon, 28 Sep 2015 06:15
133 lines
7914 bytes
7914 bytes
Bernd Rose wrote: > On Sun, 27 Sep 2015 11:38:00 -0500, VanguardLH wrote: > > [Disappearing articles in 40tude Dialog] > Since you seem to misunderstand nearly everything I wrote, here a summary: > * Dialog /never/ deletes messages and already loaded bodies, unless it > is told so So Dialog syncs down, never syncs up. > * Lost/deleted articles on server, re-indexing on server, etc. will /not/ > make Dialog deleting messages or retrieved bodies Good to know. Since the articles that went missing were also deleted up on the server is why I figured there was a connection. > * Retrieving the /body/ of a supersede to a previously retrieved body /will/ > delete the body of the message, that is superseded; the message will still > be shown in the header pane, though (with crossed "not available" symbol) For the articles that disappeared in Dialog, there was never an old version that was crossed out. > * Messages copied to a folder are safe from supersede-delete (I wrote you > should try; I tried it, myself, now: they /are/ safe) I might have to go to saving a repository (copies of messages) although it'd be a nuisance to keep it all organized by newsgroup. > * Canceling of messages on the server will /not/ delete any message or body > already retrieved in Dialog Okay, so the coincidence of noticing the article missing in Dialog also disappeared from the server was just that: a coincidence. > => This leaves Supersede-delete as only outside-driven source of delete > for an already retrieved message + body on your system But, according to your, a supercede received by Dialog would still leave behind an old version of the message (headers only) shown as crossed out. Haven't seen those. Doesn't look like supercedes are involved. > -> This leaves the possibility of an active filter (cf. to the Filter > bar, which permits (view-)filtering messages by Subject, From, Date, > MsgID,...) The "Filter bar". Is that the tabs atop the tree list pane on the left? Those seem to only affect what newsgroups are visible. I've only used the Subscribed (to show the subscribed groups) and Filtered (used to find a group) tabs. The All, New, and Folders tabs are of not much value (to me). All groups are displayed in the Filtered tab until I enter a filter string. New shows groups with new messages but I'm only interested in the group where I participate or lurk (subscribed). The Folders tab is worthless: shows all the divider lines and standard folders (Inbox, etc). I wouldn't know an article disappeared in Dialog unless I could select the newsgroup where it had been. >> So now you're saying that Dialog retains it previously retrieved message >> even if that message gets removed from the server? Then what's the >> point of your suggestion to use the 'copy' directive if Dialog never >> syncs to the server (to remove articles in Dialog that have been removed >> from the server)? > > Because Dialog /locally/ evaluates control messages. I was sure about > Supersede, but wasn't about Cancel. You might have triggered a delete > by reading control.cancel. Hmm, never figured a Cancel issued to the server would make its way to the client (except indirectly for those clients that themselves stay in sync with the message list up on the server). I haven't logged my actions when trying to determine why an article disappeared in Dialog. It's possible that I visited the control.cancel group but I would think that would be one of the actions taken when investigating why an article disappeared in Dialog. That is, the article disappeared in Dialog so then I'd go check the control.cancel group to check if the article had been cancelled on the server. > any message copied to a folder /is/ safe from Supersede-delete. I might create the repository (using !copy) for awhile waiting for the next time an article disappears in a subscribed newsgroup in Dialog. Would provide some addition troubleshooting. When it happens again, I could use the repository as a sanity test (of my sanity) to ensure that, yep, the article did exist before but it disappeared from the subscribed newsgroup folder. After you mentioned it, supercede seems the only way to effect an action in the client (versus cancels which are done at the server but could be reflected in the client that keep in sync but you say Dialog doesn't do that). > Apart from Googles internal database problems: Google doesn't show > messages tagged no-archive. Again, not sth. that can be related to > your problems, since Dialog doesn't evaluate no-archive. (And I take > it, you /don't/ have a script running, that removes such articles > after a couple of days?) In Dialog, I have it colorized posts with the "X-No-Archive: Yes" header. This is not performed via filter (rule) but instead as a header property. Right-click in the header section in the preview pane, Edit visible headers, and I added: Caption: Warn --> X-No-Archive Content: X-No-Archive Colorize: Always Bold: Always That warns me to posters that will end up [attempting to] punching holes in threads; i.e., they don't consider their posts important enough to stick around, they may disappear, so threading gets screwed up in the client trying to maintain a hierarchy of [remaining] posts in a thread. I don't recall that the disappearing messages in Dialog were using the X-No-Archive header but I wasn't specifically watching for that. When it happens again, and by using the repository of copied messages, I could see if X-No-Archive was at fault. I don't remember how long it was between when I saw the message to when it disappeared in Dialog but a week for X-No-Archive, if honored, just feels like way longer of when the messages disappeared. Another distant possibility is that I had to unsubscribe and resubscribe to one, or more, newsgroups because of problems at the server (they replaced a disk, had to reindex their articles database, or there was sync error between their overview and articles databases). Since unsubscribing (and clearing) would delete all the local copies of messages in Dialog and a resubscribe would retrieve them all again, any cancelled messages on the server (so they were gone) would result in Dialog not having those messages to retrieve. Again, if that was the cause, I would suspect that I'd remember having to do the resubscribe to now why an article disappeared in Dialog. Thanks for all the suggestions. I'll probably start creating a repository using !copy so when another article disappears from Dialog then I can see if it is still in the repository.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Mon, 28 Sep 2015 18:19
Date: Mon, 28 Sep 2015 18:19
50 lines
4126 bytes
4126 bytes
On Mon, 28 Sep 2015 01:15:17 -0500, VanguardLH wrote: >> => This leaves Supersede-delete as only outside-driven source of delete >> for an already retrieved message + body on your system > > But, according to your, a supercede received by Dialog would still leave > behind an old version of the message (headers only) shown as crossed > out. Haven't seen those. Doesn't look like supercedes are involved. Yes, the basic header subset (esp. Subject - for the message to be listed in the header pane) would be left over. > The "Filter bar". Is that the tabs atop the tree list pane on the left? > Those seem to only affect what newsgroups are visible. No. Click the Plus-sign on the left side of the newsgroup name for the currently selected group shown on the top side of the header pane. (This Plus-Sign has a drop-down menu attached, which enables you to select the current View. - If that helps you to easier find it.) As long as the Filter tick-box is enabled, you'll see only the subset of all headers, that matches the filter condition. >> Because Dialog /locally/ evaluates control messages. I was sure about >> Supersede, but wasn't about Cancel. You might have triggered a delete >> by reading control.cancel. > > Hmm, never figured a Cancel issued to the server would make its way to > the client (except indirectly for those clients that themselves stay in > sync with the message list up on the server). Somewhere around 2002/03 there was a discussion (mostly in Mantis, IIRC), if it was possible (and advisable) for Dialog to honor Cancel. It involved explicitly monitoring control.cancel in background on every connection to the server(s). I don't remember the outcome; but after my latest tests I guess these thoughts were completely abandoned. > Another distant possibility is that I had to unsubscribe and resubscribe > to one, or more, newsgroups because of problems at the server (they > replaced a disk, had to reindex their articles database, or there was > sync error between their overview and articles databases). Since > unsubscribing (and clearing) would delete all the local copies of > messages in Dialog and a resubscribe would retrieve them all again, any > cancelled messages on the server (so they were gone) would result in > Dialog not having those messages to retrieve. Again, if that was the > cause, I would suspect that I'd remember having to do the resubscribe to > now why an article disappeared in Dialog. But it sure would account to your described problem. ;-) Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Mon, 28 Sep 2015 22:56
Date: Mon, 28 Sep 2015 22:56
88 lines
6230 bytes
6230 bytes
Bernd Rose wrote: > Click the Plus-sign on the left side of the newsgroup name for the > currently selected group shown on the top side of the header pane. (This > Plus-Sign has a drop-down menu attached, which enables you to select the > current View. - If that helps you to easier find it.) As long as the > Filter tick-box is enabled, you'll see only the subset of all headers, > that matches the filter condition. That select the view applied to the folder. My default view is Hide Ignored Messages. I ignore-flag messages, not delete them. When I select the All view (I have a button in the header pane toolbar to change views), that view is applied to the currently selected newsgroup. I customized the header pane's toolbar by adding buttons for the following views: Hide ignored messages (also the default view), Show watched messages, Show unread messages, and Show all messages. When I click on the "Show all messages" button, and by using the + button you mentioned, I see the All (Ctrl+F1) view is selected. Because I do not delete messages but simply ignore-flag them (and use Hide Ignored as the default view), I have the "Show all messages" button to select the All view just in case I need to go look at messages that would otherwise be hidden. I don't think the message disappearing in Dialog is caused by a view that hides the missing message. I'm pretty sure using the All view would be one of the first troubleshooting steps that I would try. I've very aware that I use a default view that hides some messages and sometimes have to switch to the All view. >>> Because Dialog /locally/ evaluates control messages. I was sure about >>> Supersede, but wasn't about Cancel. You might have triggered a delete >>> by reading control.cancel. >> >> Hmm, never figured a Cancel issued to the server would make its way to >> the client (except indirectly for those clients that themselves stay in >> sync with the message list up on the server). > > Somewhere around 2002/03 there was a discussion (mostly in Mantis, IIRC), > if it was possible (and advisable) for Dialog to honor Cancel. It involved > explicitly monitoring control.cancel in background on every connection to > the server(s). I don't remember the outcome; but after my latest tests I > guess these thoughts were completely abandoned. Seems that would make clients susceptible to miscreants that might effect a cancel on all messages across many newsgroups, akin to Hipcrime. I always thought 'cancel' was a server-side command. However, after a quick search of RFCs, I don't see it mentioned. Guess it's a de facto (non-RFC) config using special newsgroups and authentication to remove messages. I thought cancels showed up in the control.cancel newsgroup. I can see a control.cancel newsgroup on AIOE, Eternal-September, and Albasani but for individual.net (I did refresh the newsgroups list). Looks like some Usenet providers do not provide public access to their control.cancel newsgroup or they stack the requests elsewhere. Yet individual.net does let me see their control.newgroup and control.rmgroup newsgroups. >> Another distant possibility is that I had to unsubscribe and resubscribe >> to one, or more, newsgroups because of problems at the server (they >> replaced a disk, had to reindex their articles database, or there was >> sync error between their overview and articles databases). Since >> unsubscribing (and clearing) would delete all the local copies of >> messages in Dialog and a resubscribe would retrieve them all again, any >> cancelled messages on the server (so they were gone) would result in >> Dialog not having those messages to retrieve. Again, if that was the >> cause, I would suspect that I'd remember having to do the resubscribe to >> now why an article disappeared in Dialog. > > But it sure would account to your described problem. ;-) The last time I remember having to unsubscribe and resubscribe was when Eternal-September (ES) had some disk problems and had to rebuild their overview and articles databases. ES had had multiple disk problems over the years. I don't know for sure when was the last time they had disk problems but I had switched back to Albasani before the last round of ES disk or file issues. Switching to a different Usenet provider would require downloading all their messages as new so another possibility as to why messages that were there with one provider disappeared when I retrieved the list of messages from another provider. Google Groups is worthless for search plus I don't recall they had an operator, like author: or subject:, that let me search on an author with a specified injection node in the Path header (so I could search my own posts to see when I switched to a different Usenet provider). I switch to individual.net at the end of this April but don't recall disappearing messages in Dialog since then.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Tue, 29 Sep 2015 04:01
Date: Tue, 29 Sep 2015 04:01
102 lines
5118 bytes
5118 bytes
I added the following filter:
# Save copies of posts into a repository.
!copy(Repository) bytes %>0
That is to begin saving a repository of retrieved articles. Since
copies of articles are stored in the folder, whatever happens on the
server, like articles disappearing from the server, should not affect
the separate copies that I made of the articles.
Query #1: Don't bold the folder or articles copied into the Repository.
I've already seen new articles just retrieved from Dialog showing up
there. However, since they are new articles, they are bolded in the
Repository folder plus the folder is bolded with a new-count shown after
it. Since this is a repository of previously retrieved articles, and
since the articles were copied there which means they still exist in the
original newsgroup folder, is there some way to NOT have the folder
bolded, NOT have the copies of newly retrieved articles bolded, and not
show a new-count after the Repository folder? This is to keep an
archive of previously retrieved articles and normally won't be read and
would prefer no bolding or new-count used on that folder.
If I use:
!copy(Repository),markread bytes %>0
then I suspect the new article in the original newsgroup will also get
marked as read. I do want to know when new articles show up in the
newsgroup, just not the articles copied into the Repository folder.
Query #2: Do !copy only on auto run of filters, not on manual run.
Is there any way to omit this filter when ran manually (instead of
automatically by Dialog upon retrieving a new article)? If I have to
run the filters manually, wouldn't the !copy filter result in duplicate
articles in the Repository folder (once when ran automatically upon
Dialog retrieving a new article and again when I manually ran the
filters)?
Query #3: Omit a folder (Repository) in script.
I looked around trying to find a setting for the default view when
visiting a newsgroup folder. Didn't find one. Eventually I remembered
that this had to be defined in a script that evented on my clicking on a
newsgroup folder. So I looked in Dialog's scripts and found
a message script called NGLV-WM_LBUTTONUP.ds. I probably got it from
http://dialog.datalist.org/scripts/script_library.html and then modified
it to select a default view when clicking on (entering) a newsgroup.
The script runs:
____________________
// Get new headers when clicking on a group.
program NGLV_WM_LBUTTONUP;
procedure OnWMessage(var Msg:TMessage;var handled:boolean);
begin
lockdisplay;
try
ADo('GetNewHeadersInSelectedGroups'); // Get new posts in the selected group.
finally
unlockdisplay;
end;
try
ADo('HeaderlistPane'); // Change focus to header list pane.
finally
unlockdisplay;
end;
lockdisplay;
try
ADo('View6'); // View6 must show Not Ignored posts and not select the complete thread (it just hides ignored posts).
finally
unlockdisplay;
end;
lockdisplay;
try
ADo('CollapseAllThreads'); // Collapse all threads for compact list.
finally
unlockdisplay;
end;
PostKey(80, true, false, true, false, false, false, false, false); // Move to parent
PostKey(36, false, false, true, false, false, false, false, false); // Move to top
handled := false;
end;
begin
end.
____________________
The ADo('View6') line selects the view. I need to exclude it from
operating when the Repository folder is selected. Looks like I'd need
an 'if' statement that would run the ADo() command if the current folder
(the one on which I click) is NOT named "Repository". That way,
whatever view was last used on the Repository would stick.
Query #4: Max size of newsgroup folders?
Is there a known limit on the number of records (articles) that can be
listed within a newsgroup or other folder? If so, I'd have to watch the
size somehow (don't know how to do that yet) to make sure the Repository
folder didn't get so big that it got corrupted.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Tue, 29 Sep 2015 04:21
Date: Tue, 29 Sep 2015 04:21
17 lines
2318 bytes
2318 bytes
On Mon, 28 Sep 2015 17:56:17 -0500, VanguardLH wrote: [Filter tick-box] > That select the view applied to the folder. My default view is Hide > Ignored Messages. I ignore-flag messages, not delete them. When I > select the All view (I have a button in the header pane toolbar to > change views), that view is applied to the currently selected newsgroup. We're still talking across. ;-) Look here for an example: http://screenshots.en.sftcdn.net/en/scrn/27000/27760/40tude-dialog-2.jpg If Filter is "ticked-in" while a condition like <Subject contains "a"> is defined, you'd not see any message, which contains /no/ letter "a". Hitting Ctrl+F1 to select the "All" view has /no/ effect on this filter! Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Tue, 29 Sep 2015 06:45
Date: Tue, 29 Sep 2015 06:45
111 lines
6367 bytes
6367 bytes
Bernd Rose wrote:
> VanguardLH wrote:
>
>> That select the view applied to the folder.
>
> We're still talking across. ;-) Look here for an example:
> http://screenshots.en.sftcdn.net/en/scrn/27000/27760/40tude-dialog-2.jpg
Don't see that toolbar. I use a 3-pane layout (the 2nd choice) where
the tree pane extends from top to bottom, the headers pane is on the
right top and occupies to half the window, and the article pane is on
the right bottom and occupies the lower half of the window. The layout
is:
| H
G |---
| A
where G = groups, H = headers, and A = article. Here is what I see:
http://i62.tinypic.com/16bhe1f.jpg
There is no "Sort ... Filter" toolbar. I couldn't find a toolbar to add
that showed those checkboxes and fields. When I right-click on a
toolbar, the popup dialog lists:
Configure buttons/shortcuts
----------
X Main toolbar
Toolbar 1
X Toolbar 2
Toolbar 3
----------
Show status window
Main and Toolbar 2 are enabled. When I enable Toolbar 1, a short
toolbar appears above the tree pane. I have a custom toolbar over
there. When I enabled Toolbar 3, I get a tiny floating (undocked)
window with nothing inside of it except an X button to exit that window.
When I use the Settings -> Configure buttons/shortcuts menu, I get the
Customize Toolbars dialog but no toolbars are listed. Just the
categories of objects and a list of objects for a selected category are
listed in that dialog. I can drag objects to toolbars but there is no
way to select which toolbars to customize or even to list, add, or
delete them.
To get that toolbar, I would have to create a new blank toolbar (how to
do that?) and use the "Configure buttons/shortcuts" to drag the Sort
inverse checkbox, drop-down list of what fields to sort, the Filter
checkbox, and each of the sort fields (but I don't see those listed in
the "Configure buttons/shortcuts" dialog). Can't see how to create a
new toolbar. Can't find the Sort and Filter items to add to a new
toolbar. Can't find a Sort/Filter toolbar to make visible.
Dialog's help says:
There are four button toolbars in Dialog's main window. While the
topmost toolbar under the main menu is always visible, the other three
toolbars are only visible if they actually hold any buttons or during
customization. Select Settings>Configure buttons/shortcuts from
Dialog's main menu and note that there are three additional toolbars,
one for each of the panes in the main window. These toolbars are
especially useful when you work in zoomed mode.
Not correct. I can enable/disable visibility of the Main toolbar. In
the "Configure buttons/shortcut" dialog, it says that I will see 3
additional toolbars. I do not. I must right-click on a toolbar (or
titlebar) to enable visibility on a toolbar to see it. The config
dialog only lets me drag objects to the already visible toolbars.
The Main toolbar is docked over the groups pane, not across the entire
window. Toolbar 1 (docked over the groups pane) looks like it was a
shortened version of the Main toolbar. Toolbar 2 is docked over the
headers pane and was customized. Toolbar 3 might've been what got used
for your Sort/Filter toolbar but, for me, it's empty and undocked (as I
noted above). For now, I dragged Toolbar 3 to dock it over the headers
pane; however, it is blank so there is no point in wasting screen space
to have it visible. Even if I was to use Toolbar 3 as the Sort/Filter
toolbar and dock it over the headers pane, I don't see any objects for
Sort or Filter to drag into that toolbar.
Also, it looks like your toolbars are locked. That is, they cannot be
dragged around. Mine have a handle on the left end of the toolbars that
is used to drag them around. I have found no option to lock the
toolbars. There have been times that I accidentally dragged a toolbar
and then had to figure out how to undo the drag, and a toolbar lock
option would be appreciated.
WHOA - UPDATE
I was about to submit my reply when I decided one last time (out of
something like a dozen times) to review the objects that can be dragged
into a toolbar. One stood out:
Category: Shortcut actions
Commands: Expand/Collapse sorting/filter panel
I was looking for individual objects to drag into a toolbar. Nope, just
one object to show/hide the entire sort/filter *panel*. I dragged into
my Toolbar 2. Clicking on that shows the sort/filter panel you mention
(I thought you were talking about a toolbar). Hovering over the newly
added button shows Ctrl+Alt+F is the hotkey to toggle the show/hide
status of the sort/filter panel. I had never used this panel. Didn't
even know it was there. It's a tad different than yours.
<checkbox> Rev. sort by <listbox> | Filter: <listbox> has <stringfield>
The checkbox is not selected. The <stringfield> is blank. So it
doesn't look like I had an accidental filter applied against the view of
the headers.
[half o t] Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Ammammata
Date: Tue, 29 Sep 2015 08:25
Date: Tue, 29 Sep 2015 08:25
14 lines
1817 bytes
1817 bytes
Il giorno Sun 27 Sep 2015 02:00:37a, *VanguardLH* inviava su news.software.readers il messaggio news:d6optbFjbkcU1@mid.individual.net. Vediamo cosa scrisse: > Subject: 40tude anyone knows about 40tudecamss? it was released 1.0 but 98% of webcams aren't working any more ;) -- /-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\ -=- -=- -=- -=- -=- -=- -=- -=- - -=- >>>>> http://www.bb2002.it :) <<<<< ............ [ al lavoro ] ...........
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Tue, 29 Sep 2015 14:34
Date: Tue, 29 Sep 2015 14:34
24 lines
2447 bytes
2447 bytes
On Tue, 29 Sep 2015 01:45:18 -0500, VanguardLH wrote: [Filter bar] > Don't see that toolbar. [Many attempts to show it] Why didn't you just click on the Plus-Sign on the top left corner of the Header pane, like I suggested in my second-last message? ;-) IMHO, this Plus-Sign cannot be disabled, as long as the Filter bar is in hidden state. Whenever the filter bar is shown, the Plus-Sign turns - surprise - into a Minus-Sign... [Filter check box] > The checkbox is not selected. The <stringfield> is blank. So it > doesn't look like I had an accidental filter applied against the view of > the headers. Yes. Another possibility down. Apart from all this: I suggest you to play with that filter bar a bit. IMHO, it is quite useful! Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Tue, 29 Sep 2015 19:21
Date: Tue, 29 Sep 2015 19:21
34 lines
2739 bytes
2739 bytes
On Mon, 28 Sep 2015 23:01:06 -0500, VanguardLH wrote: > Query #1: Don't bold the folder or articles copied into the Repository. [...] > !copy(Repository),markread bytes %>0 !markread,copy(Repository),markunread bytes %>0 > Query #2: Do !copy only on auto run of filters, not on manual run. If I understand your query correctly, then what you fear will not happen: It is possible, that messages appear several times in a folder after !copy operations. But /only/, if these !copy operations are executed in the same Scoring&Actions run. (I.e. you set S&A up to copy all messages with your From address *and* all messages, that are larger than 0 Byte.) Once an article is safely stored inside a folder, it will not be duplicated by later runs (manual or automatic). You need to note, though, that without explicit !retrieve command, your folder Repository will only collect the bodies, that are also retrieved inside the main newsgroup folders. > Query #3: Omit a folder (Repository) in script. <Script example snipped> Without testing: Instead of your approach of an OnMessage script, I'd pack all the code inside an OnGroupEntered(Groupname: string) script. This one has the group name as a parameter, which later on can be evaluated by "If". > Query #4: Max size of newsgroup folders? The Counter is DWORD, so somewhat over 4 Billion. Dialog becomes unusable quite a bit earlier, though... ;-) Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 04:56
Date: Wed, 30 Sep 2015 04:56
21 lines
2377 bytes
2377 bytes
Bernd Rose wrote: > VanguardLH wrote: > >> Don't see that toolbar. > > Why didn't you just click on the Plus-Sign on the top left corner > of the Header pane, like I suggested in my second-last message? ;-) Because the author of Dialog made it a confusing object. The + and down chevron are the SAME object. When you click on the down chevron, that entire combo object is highlighted. Well, that means the controls are tied together, so if I'm seeing a list of views when using the down chevron then I assumed I was using the ONE object shown. Clicking the down chevron should NOT also highlight the separate panel visibility (+) object. Think about it: if I highlighted a line of text, I would expect everything that was highlighted would get copied (Ctrl+C), not some part of the highlighted line. That it is a combo function object is okay but not highlighting it all when just one part of the combo object is used. Poor design.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Wed, 30 Sep 2015 05:07
Date: Wed, 30 Sep 2015 05:07
10 lines
1988 bytes
1988 bytes
On Tue, 29 Sep 2015 23:56:34 -0500, VanguardLH wrote: [Dialog] > Poor design. There may be some aspects, that need some time to get accustomed to. But, IMHO, wrt design Dialog exceeds any other newsreader poles apart... Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 05:39
Date: Wed, 30 Sep 2015 05:39
67 lines
4173 bytes
4173 bytes
Bernd Rose wrote: > VanguardLH wrote: > >> Query #1: Don't bold the folder or articles copied into the Repository. >> [...] >> !copy(Repository),markread bytes %>0 > > !markread,copy(Repository),markunread bytes %>0 Never thought about that. Did not realize the actions were commited in the order listed. >> Query #2: Do !copy only on auto run of filters, not on manual run. > > If I understand your query correctly, then what you fear will not > happen: It is possible, that messages appear several times in a > folder after !copy operations. But /only/, if these !copy operations > are executed in the same Scoring&Actions run. (I.e. you set S&A up > to copy all messages with your From address *and* all messages, that > are larger than 0 Byte.) Once an article is safely stored inside a > folder, it will not be duplicated by later runs (manual or automatic). I feared duplication would ensure by running the filters manually. Good to know that doesn't happen. > You need to note, though, that without explicit !retrieve command, > your folder Repository will only collect the bodies, that are also > retrieved inside the main newsgroup folders. I don't use Dialog for e-mail. I only want articles in the Repository that were retrieved into a newsgroup folder. If, for example, I visit a newsgroup temporarily, like someone said something and I want to check the newsgroup they mentioned, I don't want those articles in my Repository. So Dialog actually works like how I want: copy the newsgroup folder articles into the Repository but not if I visit [an unsubscribed] newsgroup which is a temporary visit. >> Query #3: Omit a folder (Repository) in script. > <Script example snipped> > Without testing: Instead of your approach of an OnMessage script, I'd > pack all the code inside an OnGroupEntered(Groupname: string) script. > This one has the group name as a parameter, which later on can be > evaluated by "If". NGLV_WM_LBUTTONUP was someone else's solution to commiting actions, like changing collapse/expand, when clicking on a newsgroup. I thought it was a good place to select the default view for newsgroups (since there is no such option in Dialog). I'll comment out the ADo() comamnd to change view in the message script and see if I can use your suggestion of using the OnGroupEntered event. Thanks for the coding hint. I'm assuming Groupname is the parameter who's value is assigned to a var by the same name that I would test in an 'if' statement. I'll have to play around with this. >> Query #4: Max size of newsgroup folders? > The Counter is DWORD, so somewhat over 4 Billion. Dialog becomes unusable > quite a bit earlier, though... ;-) As I recall, it starts to get slow. Not just a little slow but quite slow. That's probably why I setup the Purge options to keep the record count low enough to keep Dialog responsive. While I visit over 50 groups, they are all text-only groups. I set the Repository folder's purge options to Never but I might reconsider that later if Dialog gets slow. I might change it to 1 year.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 06:21
Date: Wed, 30 Sep 2015 06:21
82 lines
4965 bytes
4965 bytes
Alas, OnGroupEntered event doesn't seem to trigger when I click on a
newsgroup in the tree pane. I moved the code from the message script
(actually just commented it out in the message script) and copied into
the OnGroupEvent event script, so that looked like:
program OnGroupEntered;
procedure OnGroupEntered(Groupname: string);
begin
lockdisplay;
try
// if Groupname <> 'Repository' then // Do not change last view used for Repository folder.
ADo('View6'); // View6 = Show 'Not Ignored' posts, not select the complete thread.
finally
unlockdisplay;
end;
end;
begin
end.
For now, the 'if' is commented out just to see if the OnGroupEntered
event fires or not (to change the view).
View1 = All messages
View6 = Hide Ignored messages (those flagged 'ignored').
To test, I would set the view in the currently selected newsgroup to All
messages (view1). I'd click on a different newsgroup and then click
back on the first newsgroup. The view did not change to Hide Ignored
(view6). Whatever view was last used in a newsgroup is the same view
used when I revisit the newsgroup. So I've lost having a default view
of Hide Ignored when I select (click on) a newsgroup. I even got rid of
the 'try' select and just had the OnGroupEntered event script run:
lockdisplay;
ADo('View6');
unlockdisplay;
Still that did not change the view when I entered a newsgroup. When I
select a view, it becomes the global view for all newsgroups. Clicking
on a newsgroup does not change to view6. Looks like the OnGroupEntered
event is not firing when I click on a newsgroup. Perhaps the ADo()
function or view modes are out of scope for this event script.
The OnWMessage message script might be a windowing event so it fires
when I do something in Dialog's window, like click on a newsgroup. The
OnGroupEntered event script might only affect objects within a group,
like records (articles), and can't do anything outside the group, like
effect a view change.
UPDATE
I tested again because I noticed that sometimes the view got changed
using the OnGroupEntered event script. What I found through further
testing is that I have to remain in a newsgroup for about 5 seconds
before switching away to another newsgroup for this event to fire. That
is, in my first testing, I'd change to the All messages view (view1) in
a newsgroup and then start clicking around on other newsgroups. I
wasn't waiting around in the newsgroup (other than to notice the headers
showed up for the articles in the selected newsgroup), so I was only in
a newsgroup for a couple seconds. When bouncing around between
newsgroups, the view was not changing. If I lingered in a newsgroup for
around 5 seconds then the view changed in the next newsgroup that I
selected.
This lag before the OnGroupEntered event fires is way too long. There
are times when I click on a newsgroup, don't see any articles were
marked watch, like those that I started, and move onto the next
newsgroup. The OnGroupEntered event is taking too long before it fires.
Good idea (so I could get at the groupname) but the event is too slow.
The view for the group I just entered is NOT getting changed. If I
linger in that group for 5 seconds (sometimes it take more) then the
view will change on the *next* selected newsgroup. Sometimes it takes
so long before the view gets changed on the *next* selected group that
it seems random if and when the OnGroupEntered event will fire. It
NEVER affects the group that I just entered. It may change the view on
the next selected group although it might take a while of lingering in
the prior group.
There is no lag or iffiness when using the NGLV_WM_LBUTTONUP message
script; however, I don't know how to get at the groupname there.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Wed, 30 Sep 2015 15:28
Date: Wed, 30 Sep 2015 15:28
40 lines
2819 bytes
2819 bytes
On Wed, 30 Sep 2015 01:21:44 -0500, VanguardLH wrote:
> Alas, OnGroupEntered event doesn't seem to trigger when I click on a
> newsgroup in the tree pane. [...] What I found through further
> testing is that I have to remain in a newsgroup for about 5 seconds
> before switching away to another newsgroup for this event to fire.
No. With your sample code you just wait for the next screen refresh to
show your changes. Your code needs to explicitly fire up the refresh:
;---------------------------------------------------------------------
program OnGroupEntered;
procedure OnGroupEntered(sName: string);
begin
if sName<>'news.software.readers' then
begin
ADo('View1');
ADo('RefreshView');
end
else
begin
ADo('View2');
ADo('RefreshView');
end;
end;
begin
end.
;---------------------------------------------------------------------
This example works fine and acts immediately. A short remark to Lock/Unlock:
This is only necessary to /prevent/ screen updates, esp. when a large number
of screen relevant actions in a row may cause an unwanted screen flicker. In
your case it is counterproductive... - In case you wonder, why this didn't
cause problems in the LButtonUp-Script: LButtonUp acts before any drawing
in the header pane (to reflect the group change) occurs. OnGroupEntered acts
just a little bit later.
Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 20:50
Date: Wed, 30 Sep 2015 20:50
120 lines
6285 bytes
6285 bytes
Bernd Rose wrote:
> On Wed, 30 Sep 2015 01:21:44 -0500, VanguardLH wrote:
>
>> Alas, OnGroupEntered event doesn't seem to trigger when I click on a
>> newsgroup in the tree pane. [...] What I found through further
>> testing is that I have to remain in a newsgroup for about 5 seconds
>> before switching away to another newsgroup for this event to fire.
>
> No. With your sample code you just wait for the next screen refresh to
> show your changes. Your code needs to explicitly fire up the refresh:
>
> ;---------------------------------------------------------------------
> program OnGroupEntered;
>
> procedure OnGroupEntered(sName: string);
> begin
> if sName<>'news.software.readers' then
> begin
> ADo('View1');
> ADo('RefreshView');
> end
> else
> begin
> ADo('View2');
> ADo('RefreshView');
> end;
> end;
>
> begin
> end.
> ;---------------------------------------------------------------------
>
> This example works fine and acts immediately. A short remark to Lock/Unlock:
> This is only necessary to /prevent/ screen updates, esp. when a large number
> of screen relevant actions in a row may cause an unwanted screen flicker. In
> your case it is counterproductive... - In case you wonder, why this didn't
> cause problems in the LButtonUp-Script: LButtonUp acts before any drawing
> in the header pane (to reflect the group change) occurs. OnGroupEntered acts
> just a little bit later.
>
> Bernd
I remember trying to find documentation on all the lib functions
available within scripts for Dialog. Never found it. The usual
response is Dialog is written in Delphi. That doesn't help in knowing
the global functions, vars, or other objects that have been defined only
with Dialog to know how to program the scripts. Did the author ever
documented scripting so users would know how to program them for use
within the scope for the scripts? For example, in Dialog's help about
scripting, it mentions:
function ADo(actionname: string): boolean;
//Trigers a command in Dialog
Okay, so ADo() calls some command. Where is the list of commands?
Header syntax for a function does not describe what the function does or
delineates the arguments to the function.
Thanks for the tip on refresh. There's no way I would've know about it.
I forget how I ever figured out the ADo() function. Mostly likely I
looked at someone else's script to figure it out. Dialog's help is
cursory so it isn't sufficiently complete to figure out how to write
scripts from scratch.
However, refresh did not eliminate the lag. If I click on a newsgroup,
change its view, and then click on other newsgroups, the last view used
in the first newsgroup is still used. My code (a bit simplified from
your example) is:
if GroupName <> 'Repository' then
begin
ADo('View6');
ADo('RefreshView');
end;
I don't want the view changed in the Repository folder when I visit a
different newsgroup; i.e., I'd like whatever view last used in
Repository to be the same upon return to that folder. So I only change
the view when I look in folders other than Repository. Alas, unless I
dally around in a newly selected newsgroup for 5-15 seconds, the view
will be the same when I click on a different newsgroup. In fact, the
view will only change to the one specified when I click on a different
newsgroup, dally there (where the old view remains no matter how long I
wait), and then focus on a different newsgroup.
Click on newsgroup #1. Change the view. Click on newsgroup #2. The
view there is the same as selected in newsgroup #1. Dally there for 5,
10, 15, 60 seconds. The view still does not change to what was
specified in the OnGroupEntered script. Only after dallying in
newsgroup #2 long enough will clicking on newsgroup #3 give the view
specified in OnGroupEntered. If I change the view in newsgroup #1 and
don't dally in any newsgroup that I click on thereafter, the view
selected for newsgroup #1 gets used in all the other newgroups.
It's like the ADo("RefreshView") never happened. In fact, with that
command added, I see no behavior change from what I described before.
Perhaps the RefreshView action is supposed to repaint the screen but it
doesn't happen. So I tried putting the lock/unlockdisplay commands back
in to see if maybe those would force a repaint, as in:
lockdisplay;
try
if GroupName <> 'Repository' then
begin
ADo('View6');
ADo('RefreshView');
end;
finally
unlockdisplay;
end;
Didn't help. Still have the lag problem: have to dally in next selected
newsgroup (where view change won't happen) so next selected newsgroup
will have view applied.
You sure RefreshView is a valid command for ADo to execute? There is no
buffering of ADo() functions (i.e., they get queued and another function
is needed to force any pending buffered commands to execute)?
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 21:08
Date: Wed, 30 Sep 2015 21:08
28 lines
2032 bytes
2032 bytes
VanguardLH wrote: > Bernd Rose wrote: > >> VanguardLH wrote: >> >>> Query #1: Don't bold the folder or articles copied into the Repository. >>> !copy(Repository),markread bytes %>0 >> >> !markread,copy(Repository),markunread bytes %>0 > > Never thought about that. Did not realize the actions were commited in > the order listed. Alas, that is not working. Newly retrieved posts are still bolded when copied into the Repository folder, the Repository folder is bolded, and the new-count on the Repository folder is non-zero so it is shown alongside the folder. Does not look like the listed order of chained directives is guaranteed to execute the directives in that same order. So I will try the following instead to see if it works: # Marked as read newly retrieved posts and save copies into a repository. !markread bytes %>0 !copy(Repository) bytes %>0 # Reinstate unread state for newly retrieved posts. !markunread bytes %>0
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Wed, 30 Sep 2015 21:40
Date: Wed, 30 Sep 2015 21:40
22 lines
2214 bytes
2214 bytes
VanguardLH wrote: > # Marked as read newly retrieved posts and save copies into a repository. > !markread bytes %>0 > !copy(Repository) bytes %>0 > # Reinstate unread state for newly retrieved posts. > !markunread bytes %>0 Well, that didn't work, either. Copies of articles in the Repository folder are bolded, the Repository folder is bolded, and the new-count (non-zero) is shown alongside the Repository folder. I'm starting to think the copies of articles in the Repository folder are not actual copies of the articles but instead pointers to the articles in another folder (to where they were retrieved). That is, maybe the copies are links to the original article and the copy is not performed until the server poll has completed. I recall reading that Dialog does use a 2-pass filter system. For example, if an article is marked as ignored in the 1st pass, it is not marked ignored again in the 2nd pass. So maybe some directives are ignored on the 2nd pass or they aren't executed until the 2nd pass.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Thu, 01 Oct 2015 05:55
Date: Thu, 01 Oct 2015 05:55
9 lines
1584 bytes
1584 bytes
On Wed, 30 Sep 2015 16:08:05 -0500, VanguardLH wrote: >>> !markread,copy(Repository),markunread bytes %>0 [...] > Alas, that is not working. For me this works just fine. Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Thu, 01 Oct 2015 06:14
Date: Thu, 01 Oct 2015 06:14
45 lines
3183 bytes
3183 bytes
On Wed, 30 Sep 2015 15:50:40 -0500, VanguardLH wrote: [OnGroupEntered example with Refresh] > However, refresh did not eliminate the lag. For me, this works fine and acts immediately. > Did the author ever documented scripting so users would know how to > program them for use within the scope for the scripts? From Dialog Help File (chapter Scripting): | Scripts in Dialog are written in the Object Pascal language, as known from | Borland's Delphi. If you need an introduction to Object Pascal there is a | very good free online introduction to the Pascal programming language by | Marco Cantù at http://www.marcocantu.com/epascal/default.htm. The linked documentation is free and excellent. > Okay, so ADo() calls some command. Where is the list of commands? Retrieving the Action list is the first Dialog specific function listed on the Scripting help page. So you just need to create and execute a script to get the current subset: Program ShowAllActions; Begin WriteLn(GetActionList()); End. This way, the help file didn't need adjustments, whenever an Action was changed or added. Please note: Typos in function names must not be corrected! Don't forget, that Marcus regarded Dialog work in progress in Beta state until he had to abandon this project. (Most likely out of personal reasons.) Therefore, the documentation can not be expected in a "perfect" state... > I forget how I ever figured out the ADo() function. This information also is found on the Scripting page in the help file. > You sure RefreshView is a valid command for ADo to execute? Dialog Scripting Engine would complain, if it wasn't. Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: tlvp
Date: Sat, 03 Oct 2015 21:15
Date: Sat, 03 Oct 2015 21:15
29 lines
2568 bytes
2568 bytes
On Sun, 27 Sep 2015 11:38:00 -0500, VanguardLH asked: > Dialog only does retrieves from the server. It never syncs to cancels > performed at the server, right? After Dialog retrieves an article from > a server, that article will remain indefinitely in Dialog even if the > article disappears from the server, right? Those are certainly my experiences. There's a semi-moderated private newsgroup (on a private server) which has, in the past, occasionally removed all posts by a participant whom one moderator took a dislike to and banned from further participation. The posts in question once gathered in by Dialog remained available to me in Dialog ... even after they'd been removed, as evidenced by Thunderbird being unable to see them. Even posts of mine, removed after a few days because they were found offensive, remained visible to me in Dialogue long after they were -- again, as evidenced by T'bird -- expunged from the news-server. On the other hand, if someone having posted an article chooses to post a superseding one (canceling the original), as soon as Dialog downloads the superseding article the superseded one displays a bright red X in its icon in the message-pane listing and no longer lets me view its body. HTH. Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 00:41
Date: Sun, 04 Oct 2015 00:41
49 lines
3704 bytes
3704 bytes
tlvp wrote: > VanguardLH asked: > >> Dialog only does retrieves from the server. It never syncs to cancels >> performed at the server, right? After Dialog retrieves an article from >> a server, that article will remain indefinitely in Dialog even if the >> article disappears from the server, right? > > Those are certainly my experiences. > > There's a semi-moderated private newsgroup (on a private server) which has, > in the past, occasionally removed all posts by a participant whom one > moderator took a dislike to and banned from further participation. > > The posts in question once gathered in by Dialog remained available to me > in Dialog ... even after they'd been removed, as evidenced by Thunderbird > being unable to see them. > > Even posts of mine, removed after a few days because they were found > offensive, remained visible to me in Dialogue long after they were -- > again, as evidenced by T'bird -- expunged from the news-server. > > On the other hand, if someone having posted an article chooses to post a > superseding one (canceling the original), as soon as Dialog downloads the > superseding article the superseded one displays a bright red X in its icon > in the message-pane listing and no longer lets me view its body. Thanks for the evidence on Dialog's behavior (to keep its local copy of an article cancelled on the server). To avoid the supercede changing the local copy of an article, and per Bernd's recommendation, I've started a seperate repository. In the filters, I use the !copy action to save a copy of an article to a different folder (the repository). Hopefully the supercede will only affect the original article in the newsgroup folder and not touch the copy put into the repository folder. I didn't want the copies to be new articles but marked as read. Bernd suggested using "!markread,copy(Repository),markunread" (placed at the start of the filters list) which should mark newly retrieved articles as read, save a copy, and then unmmark the newly restrived articles. Works for Bernd but for me the copied articles are still marked unread. I even used separate lines for "!markread", "!copy", and "markunread" but that still did not work: newly retrieved articles copied into the respository folder were still marked unread. So there is something different in my setup of Dialog that prevents markread and markunread from working. Oh well, I'll have to get used to ignoring the bolded Repository folder with its new-count shown.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 04 Oct 2015 06:41
Date: Sun, 04 Oct 2015 06:41
20 lines
2380 bytes
2380 bytes
On Sat, 3 Oct 2015 19:41:15 -0500, VanguardLH wrote: > I didn't want the copies to be new articles but marked as read. Bernd > suggested using "!markread,copy(Repository),markunread" (placed at the > start of the filters list) "Start of the filters list" means on top of the [*] section, right? If this still doesn't work for you, I suggest you to parallel copy your entire Dialog installation and remove any Scoring&Action except the one to be tested with section header [*] and all non-standard scripts. In this parallel Dialog you can also test the script that is not working for you (OnGroupEntered). If both /do/ work now, insert your Scoring&Actions and Scripts one after another (or in small groups) until sth. breaks. Now you should be able to identify the culprit. If both do /not/ work on the clean setup, we'd need to compare settings. Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 04 Oct 2015 06:57
Date: Sun, 04 Oct 2015 06:57
11 lines
2013 bytes
2013 bytes
Following myself up: I forgot to ask a question nagging for some time: Are you aware, that you are able to set an "Initial View" via <Selected Group options> in the <Sorting/Scoring> section? You'd need to set this for any single group, though, since the <Default Group options> doesn't contain this setting. Btw., maybe you /have/ set sth. different than "GlobalView" for all groups that take time to get the View set by OnGroupEntered to show? Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 07:55
Date: Sun, 04 Oct 2015 07:55
35 lines
2624 bytes
2624 bytes
Bernd Rose wrote: > "Start of the filters list" means on top of the [*] section, right? Yep, the filter is in the "*" newsgroup section which starts at the top of the list. If I put the markread, copy, or markunread before the first newsgroup specifier (which is "[*]") then Dialog complains as shown in the window capture at: http://imgur.com/NooUVzU Below are the first lines of the filter list: ## For all groups: [*] # Marked as read newly retrieved posts and save copies into a repository. !markread bytes %>0 !copy(Repository) bytes %>0 # Reinstate unread state for newly retrieved posts. !markunread bytes %>0 Above was when I tried using separate lines for each action (markread, copy, and markunread). "!markread,copy(Repository),markunread" didn't work for me in one line (next line after the "[*]" line) so I tried to separate the actions but that failed, too. > If this still doesn't work for you, I suggest you to parallel copy > your entire Dialog installation and remove any Scoring&Action except > the one to be tested with section header [*] and all non-standard > scripts. In this parallel Dialog you can also test the script that > is not working for you (OnGroupEntered). Instead of a whole copy of the install folder for Dialog, couldn't I just rename the filter.dat file? That should start Dialog without any filters.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 08:04
Date: Sun, 04 Oct 2015 08:04
31 lines
2752 bytes
2752 bytes
Bernd Rose wrote: > Following myself up: > > I forgot to ask a question nagging for some time: Are you aware, that > you are able to set an "Initial View" via <Selected Group options> in > the <Sorting/Scoring> section? You'd need to set this for any single > group, though, since the <Default Group options> doesn't contain this > setting. Btw., maybe you /have/ set sth. different than "GlobalView" > for all groups that take time to get the View set by OnGroupEntered > to show? No, I didn't notice that option. I have played with the global group options and even changed the selected group options when changing the purge interval on the Repository folder to never. Didn't think about changing the folder-specific view. Never figured there was a view setting under the Sort/Scoring category. Like you said, no such setting for Global Group Settings where I've mostly visited. However, I'm still stuck with selecting the view in the message script "NGLV_WM_LBUTTONUP" when I click on a folder, so that will override the group's view setting, anyway. That's because my Dialog setup incurs a very long and variable delay for the event "OnGroupEntered". Will have to work on that later after seeing if wiping out the old filters to then only use: [*] !markread,copy(Repository),markunread bytes %>0 will put read copies of articles into the Repository folder. Will get to that tomorrow. Need some sleep now (3 AM here).
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 08:24
Date: Sun, 04 Oct 2015 08:24
28 lines
2347 bytes
2347 bytes
I submitted 2 replies but deliberately exited Dialog before it polled for new articles (to next test using minimal set of filters). With Dialog unloaded, I copied filter.dat to filter.OLD_dat and edited filter.dat (a text file) to delete everything other than the following lines: ## For all groups: [*] # Save copies of newly retrieved posts (marked as read) into a repository. !markread,copy(Repository),!markunread bytes %>0 Upon loading Dialog, now no copies of newly retrieved articles get copied into the Repository folder. Huh? The news.software.readers group got bolded with a new-count of 2 due to my new replies to you. So Dialog found the new articles on the server and retrieved them into the news.software.readers group. Those new articles didn't show up in the Repository folder. So I'll try changing the filters to each action is on its own line, as in: ## For all groups: [*] # Save copies of newly retrieved posts (marked as read) into a repository. !markread bytes %>0 !copy(Repository) bytes %>0 !markunread bytes %>0
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 08:37
Date: Sun, 04 Oct 2015 08:37
58 lines
3814 bytes
3814 bytes
VanguardLH wrote: > I submitted 2 replies but deliberately exited Dialog before it polled > for new articles (to next test using minimal set of filters). With > Dialog unloaded, I copied filter.dat to filter.OLD_dat and edited > filter.dat (a text file) to delete everything other than the following > lines: > > ## For all groups: > [*] > # Save copies of newly retrieved posts (marked as read) into a repository. > !markread,copy(Repository),!markunread bytes %>0 > > Upon loading Dialog, now no copies of newly retrieved articles get > copied into the Repository folder. Huh? The news.software.readers > group got bolded with a new-count of 2 due to my new replies to you. So > Dialog found the new articles on the server and retrieved them into the > news.software.readers group. Those new articles didn't show up in the > Repository folder. > > So I'll try changing the filters to each action is on its own line, as > in: > > ## For all groups: > [*] > # Save copies of newly retrieved posts (marked as read) into a repository. > !markread bytes %>0 > !copy(Repository) bytes %>0 > !markunread bytes %>0 Well, with each action on its own line, now I'm back to Dialog executing the 'copy' action to save a copy of a newly retrieved article into the Repository folder. Alas, the copy is marked unread (bolded), not marked read, so the Repository folder is also bolded. The "!markread bytes %>0" line is not working either because 'markread' doesn't work or "bytes %>0" doesn't work with the 'markread' action. So having each action on its own line does not trigger the 'markread' action to fire. That would explain why having all actions on the same line in: !markread,copy(Repository),markunread bytes %>0 did not work. The 'markread' action was ignored but the 'copy' action did work (but then an unmarked copy got stored in the respository). Whether 'markunread' does anything or not cannot be determined as the new articles would've already been unread (and 'markread' isn't doing anything to change that state). According to Dialog's help: !markread Marks the message read !markunread Marks the message unread It hints that these actions apply only to 1 article, not to a whole bunch of retrieved new articles. Yet, in my test case, Dialog only retrieved 1 new article. Okay, enough, time to go to bed.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 04 Oct 2015 09:21
Date: Sun, 04 Oct 2015 09:21
17 lines
2313 bytes
2313 bytes
On Sun, 4 Oct 2015 03:37:54 -0500, VanguardLH wrote: [S&A-Test] Sounds like the first Action on your list gets ignored (for whatever reason). Executing all three commands on one line shouldn't differ from executing them in a row. Yet, the whole line of all 3 commands doesn't get executed. In you second approach, the second and third line gets executed, while the first line obviously is ignored. So, maybe you just try two !markread in a row as a rough test? For me, a clean filters.dat just containing: [*] !markread,copy(Repository),markunread bytes %>0 works as expected. Therefore I guess, that one of your scripts interferes. Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 13:28
Date: Sun, 04 Oct 2015 13:28
31 lines
2570 bytes
2570 bytes
Bernd Rose wrote: > On Sun, 4 Oct 2015 03:37:54 -0500, VanguardLH wrote: > > [S&A-Test] > Sounds like the first Action on your list gets ignored (for whatever > reason). Executing all three commands on one line shouldn't differ from > executing them in a row. Yet, the whole line of all 3 commands doesn't > get executed. In you second approach, the second and third line gets > executed, while the first line obviously is ignored. So, maybe you > just try two !markread in a row as a rough test? > > For me, a clean filters.dat just containing: > [*] > !markread,copy(Repository),markunread bytes %>0 > > works as expected. Therefore I guess, that one of your scripts interferes. I removed all comment lines just in case the EOL was not terminating the comment. Another !markread line was added just in case Dialog was eating the first action line. So now for filters I have: [*] !markread bytes %>0 !markread bytes %>0 !copy(Repository) bytes %>0 !markunread bytes %>0 I marked the Repository group as read (to remove the bolding). Then I'll submit this article and do a retrieve to see what happens with the newly retrieve article.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 13:30
Date: Sun, 04 Oct 2015 13:30
37 lines
2834 bytes
2834 bytes
VanguardLH wrote: > Bernd Rose wrote: > >> On Sun, 4 Oct 2015 03:37:54 -0500, VanguardLH wrote: >> >> [S&A-Test] >> Sounds like the first Action on your list gets ignored (for whatever >> reason). Executing all three commands on one line shouldn't differ from >> executing them in a row. Yet, the whole line of all 3 commands doesn't >> get executed. In you second approach, the second and third line gets >> executed, while the first line obviously is ignored. So, maybe you >> just try two !markread in a row as a rough test? >> >> For me, a clean filters.dat just containing: >> [*] >> !markread,copy(Repository),markunread bytes %>0 >> >> works as expected. Therefore I guess, that one of your scripts interferes. > > I removed all comment lines just in case the EOL was not terminating the > comment. Another !markread line was added just in case Dialog was > eating the first action line. So now for filters I have: > > [*] > !markread bytes %>0 > !markread bytes %>0 > !copy(Repository) bytes %>0 > !markunread bytes %>0 > > I marked the Repository group as read (to remove the bolding). Then > I'll submit this article and do a retrieve to see what happens with the > newly retrieve article. Nope, the copy put in the Repository folder is still marked unread (so the new article and folder are bolded). Okay, next will be to inspect the scripts.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 14:11
Date: Sun, 04 Oct 2015 14:11
119 lines
5931 bytes
5931 bytes
Looked at the scripts. The message scripts are irrelevant because each
is defined on a mouse action. Since I am not clicking on anything just
to see the Repository folder get bolded then those scripts are not
executed. The custom scripts are defined for use with toolbar buttons,
like buttons to change views (instead of wading through menus). Again,
I'm not clicking any toolbar buttons when I see the Repository folder
get bolded when new articles are retrieved.
I looked at the event scripts. The only non-empty ones are:
OnTimer1: Used to define poll interval for e-mail but I don't use Dialog
for e-mail.
OnTimer2: Used to define poll interval for newsgroups. Runs:
lockdisplay;
try
ADo('GetNewHeadersInSubscribedGroups'); // Get new newsgroup posts.
finally
unlockdisplay;
end;
OnStartup: Runs the same commands as OnTimer1 and OnTimer2. The timed
polls do not include zero seconds so this event forces Dialog
to do a poll when it loads. Also runs:
timer1.interval:=60000*5; // Get e-mails at 5-minute intervals.
timer1.enabled:=true; // Used by OnTimer1 event script.
timer2.interval:=60000*5; // Get newsgroups posts at 5-minute intervals.
timer2.enabled:=true; // Used by OnTimer2 event script.
All the other events are blank except for OnBeforeSavingMessage. This
one is defined to remove superfluous PGP signatures. No one is going to
waste time checking someone's claimed PGP signature to verify they did
not forge someone else's identity. The worthless PGP sigs are a
nuisance when included in the body of an article, so this script removes
those signatures. It runs:
____________________
//Remove PGP signature from newsgroup messages
program OnBeforeSavingMessage;
const pgp_headline='-----BEGIN PGP SIGNED';
const pgp_sig_start='-----BEGIN PGP SIGNATURE-----';
const pgp_sig_end='-----END PGP SIGNATURE-----';
const pgp_sig_fix='- -- ';
const maxint=2147483647;
procedure OnBeforeSavingMessage(var Message: TStringlist; Servername:
string; IsEmail: boolean);
var i,j:integer;
s:string;
begin
if isemail=true then exit;
for i:= 0 to message.count-1 do
begin
if pos(pgp_headline, message.strings[i]) > 0 then
begin
// delete the '...PGP SIGNED...' line
message.delete(i);
// delete the 'Hash: foo' line now at index "i".
message.delete(i-1);
// insert notice
// message.insert(i,'---PGP sig removed---');
end;
if pos(pgp_sig_fix, message.strings[i]) > 0 then
begin
// delete the broken signature delimiter '- -- ' and replace it with '-- '
message.delete(i);
message.insert(i,'-- ');
// exit the "i" loop
break;
end;
end;
//setup to delete pgp signature
s:=message.text;
//locate start of pgp signature
i:=pos(pgp_sig_start,s);
begin
//find length of pgp signature string
j := i + pos(pgp_sig_end,copy(s, i, maxint));
if j > i then
begin
//delete pgp signature string
delete(s, i, j-i + length(pgp_sig_end) +1);
message.text:=s;
end;
end;
end;
begin
end.
___________________
While this script modifies an article, it only modifies the body of the
article. I don't see that it affects the state of the article (i.e.,
marked read/unread status). Also, it has been a long time since I ran
across someone who thinks PGP signatures has any real value (versus
stroking their ego). I haven't ran across an article with the PGP
delimiters in the body of an article. Since the newly retrieved
articles do not have the PGP sig block, the first 'if' fails. The 2nd
'if' fails, too. I commented out the alert message since I don't care
when the script removed the bogus PGP sig block if there was one. The
last 'if' fails, too, if there is no PGP sig block. I got this script
from elsewhere from someone else who doesn't want the nuisance of having
to read the message inside the PGP sig block delimiter lines.
I don't see anything here that would change the state (marked read or
unread) of a newly retrieved article.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 14:29
Date: Sun, 04 Oct 2015 14:29
63 lines
4612 bytes
4612 bytes
Bernd Rose wrote:
> On Sun, 4 Oct 2015 03:37:54 -0500, VanguardLH wrote:
>
> [S&A-Test]
> Sounds like the first Action on your list gets ignored (for whatever
> reason). Executing all three commands on one line shouldn't differ from
> executing them in a row. Yet, the whole line of all 3 commands doesn't
> get executed. In you second approach, the second and third line gets
> executed, while the first line obviously is ignored. So, maybe you
> just try two !markread in a row as a rough test?
>
> For me, a clean filters.dat just containing:
> [*]
> !markread,copy(Repository),markunread bytes %>0
>
> works as expected. Therefore I guess, that one of your scripts interferes.
>
> Bernd
There is something different than the install-time defaults for Dialog.
Because I want to use filters that test on any header, and because I
only visit text-only newsgroups so retrieving them complete doesn't take
long, I have Dialog download not just the headers but the bodies as
well. That is, instead of just retrieving headers and then later
retrieving the body of an article when I happen to click on it, I tell
Dialog to download the full article (header+body) via the setting:
For the global group settings, under the Retrieving category, the
"Retrieve bodies for all new messages" option is enabled. To test on
non-overview headers (e.g., Path) requires that the entire message get
retrieved so the non-overview headers are available in the message. If
there is another way to get Dialog to test on non-overview headers, I
have not found it. I don't know if Dialog supports XPAT but rare few
servers enable that search feature as it is resource intensive on their
end. Since XPAT is rarely supported on the NNTP server (and on none of
the ones that I use), it is unusable to test on non-overview headers.
Retrieving the entire message makes sure I get all the headers so I can
test on any of them. Filters let me specify From, Message-ID and other
overview headers but I have to use Header:{...} to test on the
non-overview headers. There are some trolls so stupid as to include
X-headers that are a solid fingerprint of their identity.
So Dialog is not just retrieving headers. It is retrieving the full
article: all headers and the entire body.
For the Repository folder, it have "Selected group options" enabled for
that folder. The "Retrieve bodies for all new messages" option is
enabled for the Repository's group settings. So I'm wondering if Dialog
is somehow duplicating the article retrieves: once for the actual
newsgroup folder (and sending a copy to Repository) and again in the
Repository folder (to override the one copied from the original
newsgroup folder).
I'll disable the "Retrieve bodies for all messages" in the group options
for just the Repository folder. After all, I'm not wanting that folder
to retrieve any articles. Only articles copied from other folders go
into the Repository folder.
Onto another test: deselect "Retrieve bodies for all messages" in the
group settings for the Repository folder, submit this article, and see
if the Repository folder gets bolded when this new article gets
retrieved.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 14:31
Date: Sun, 04 Oct 2015 14:31
70 lines
5011 bytes
5011 bytes
VanguardLH wrote:
> Bernd Rose wrote:
>
>> On Sun, 4 Oct 2015 03:37:54 -0500, VanguardLH wrote:
>>
>> [S&A-Test]
>> Sounds like the first Action on your list gets ignored (for whatever
>> reason). Executing all three commands on one line shouldn't differ from
>> executing them in a row. Yet, the whole line of all 3 commands doesn't
>> get executed. In you second approach, the second and third line gets
>> executed, while the first line obviously is ignored. So, maybe you
>> just try two !markread in a row as a rough test?
>>
>> For me, a clean filters.dat just containing:
>> [*]
>> !markread,copy(Repository),markunread bytes %>0
>>
>> works as expected. Therefore I guess, that one of your scripts interferes.
>>
>> Bernd
>
> There is something different than the install-time defaults for Dialog.
> Because I want to use filters that test on any header, and because I
> only visit text-only newsgroups so retrieving them complete doesn't take
> long, I have Dialog download not just the headers but the bodies as
> well. That is, instead of just retrieving headers and then later
> retrieving the body of an article when I happen to click on it, I tell
> Dialog to download the full article (header+body) via the setting:
>
> For the global group settings, under the Retrieving category, the
> "Retrieve bodies for all new messages" option is enabled. To test on
> non-overview headers (e.g., Path) requires that the entire message get
> retrieved so the non-overview headers are available in the message. If
> there is another way to get Dialog to test on non-overview headers, I
> have not found it. I don't know if Dialog supports XPAT but rare few
> servers enable that search feature as it is resource intensive on their
> end. Since XPAT is rarely supported on the NNTP server (and on none of
> the ones that I use), it is unusable to test on non-overview headers.
> Retrieving the entire message makes sure I get all the headers so I can
> test on any of them. Filters let me specify From, Message-ID and other
> overview headers but I have to use Header:{...} to test on the
> non-overview headers. There are some trolls so stupid as to include
> X-headers that are a solid fingerprint of their identity.
>
> So Dialog is not just retrieving headers. It is retrieving the full
> article: all headers and the entire body.
>
> For the Repository folder, it have "Selected group options" enabled for
> that folder. The "Retrieve bodies for all new messages" option is
> enabled for the Repository's group settings. So I'm wondering if Dialog
> is somehow duplicating the article retrieves: once for the actual
> newsgroup folder (and sending a copy to Repository) and again in the
> Repository folder (to override the one copied from the original
> newsgroup folder).
>
> I'll disable the "Retrieve bodies for all messages" in the group options
> for just the Repository folder. After all, I'm not wanting that folder
> to retrieve any articles. Only articles copied from other folders go
> into the Repository folder.
>
> Onto another test: deselect "Retrieve bodies for all messages" in the
> group settings for the Repository folder, submit this article, and see
> if the Repository folder gets bolded when this new article gets
> retrieved.
Nope, disabling "Retrieve bodies for all messages" in the group settings
for the Repository folder did not help. The Repository folder still
gets bolded when Dialog found a new article and copied it into the
Repository folder.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 04 Oct 2015 15:47
Date: Sun, 04 Oct 2015 15:47
19 lines
2595 bytes
2595 bytes
On Sun, 4 Oct 2015 09:29:33 -0500, VanguardLH wrote: Seems you didn't get much sleep, did you? ;-) > For the global group settings, under the Retrieving category, the > "Retrieve bodies for all new messages" option is enabled. When bodies are retrieved in the same step as are the headers, than those messages /do/ end up unread in the Repository. IMHO, there's no way to prevent this via Scoring & Actions. Btw., I tested your Scripts (OnStartup, OnTimer, OnBeforeSavingMessage). Everything still worked fine. Headers are still copied "read" and are "unread" in the original group. When later receiving the bodies for selected headers, they too are "read" in the Repository while "unread" in the original newsgroup. Only when bodies are retrieved in the same step as the headers, they will end up "unread" in the Repository... Bernd
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: VanguardLH
Date: Sun, 04 Oct 2015 16:49
Date: Sun, 04 Oct 2015 16:49
61 lines
4810 bytes
4810 bytes
Bernd Rose wrote: > VanguardLH wrote: > >> For the global group settings, under the Retrieving category, the >> "Retrieve bodies for all new messages" option is enabled. > > When bodies are retrieved in the same step as are the headers, than > those messages /do/ end up unread in the Repository. IMHO, there's > no way to prevent this via Scoring & Actions. > > Btw., I tested your Scripts (OnStartup, OnTimer, OnBeforeSavingMessage). > Everything still worked fine. Headers are still copied "read" and are > "unread" in the original group. When later receiving the bodies for > selected headers, they too are "read" in the Repository while "unread" > in the original newsgroup. Only when bodies are retrieved in the same > step as the headers, they will end up "unread" in the Repository... So I'm running into a mutually exclusive wall with Dialog. To make the most robust use of filters that can test on any header, including non-overview headers, I must have Dialog download both headers and bodies. XPAT is worthless since few servers support it. Despite marking read the newly retrieved messages, that apparently works only if only overview headers are retrieved (no bodies). I can have one or the other but not both. Argh! I didn't see XPAT mentioned in Dialog's help, and an online search on '"40tude dialog" xpat' didn't turn up articles mentioning XPAT support in Dialog. I don't remember how I tested (maybe by running 'telnet <server> <port>' and entering the NNTP commands) but XPAT doesn't seem supported at but a few NNTP servers (I didn't find any). Guess XPAT is too resource hungry searching through the huge articles database instead of the smaller overview database. Some of my filters test: - The injection node in the Path header. - X-Newsreader to find users of WLM v15, or later, that broke proper indenting of quoted content, or as a fingerprint for the trolls that lie about what client they use. - Look for text/html formatted posts (to colorize them, not delete/hide them, as a warning). - Flag posts using the FollowUp-To header (shotgunning to multiple newsgroups but intend to yank away the discussion from all but their "home" newsgroup). - Those that [attempt to] punch holes in threads by using the "X-No-Archive: Yes" or "X-Yes-Archive: No" headers. - Tries to use the Mail-Copies-To header to cull e-mail addresses. - Check the User-Agent header, if present, to cull out some particular posters (e.g., G2 users, another test of Google Groupers). - And a bunch of standard non-overview headers, X-headers, and non-standard headers the sender added themself. Without making Dialog retrieve the bodies with headers, I could only test on the overview headers because those are the only ones included in the headers for an article (run "LIST OVERVIEW.FMT" when telnetting to the NNTP server to see the overview headers in a header-only article retrieve). I visit text-only newsgroups and the incremental updates for new articles each poll by Dialog is small. It does get to be a pain if for some reason I have to clear a group or unsubscribe and resubscribe to re-retrieve all those header+body articles. If I visited binary newsgroups, the bodies would take a horrendously long time to retrieve.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Sun, 04 Oct 2015 17:54
Date: Sun, 04 Oct 2015 17:54
33 lines
2826 bytes
2826 bytes
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
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: 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.
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: 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
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: 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?
Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Author: Bernd Rose
Date: Tue, 13 Oct 2015 18:16
Date: Tue, 13 Oct 2015 18:16
81 lines
5789 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads