Thread View: news.software.readers
7 messages
7 total messages
Started by RJB
Thu, 01 May 2003 16:47
[Dialog] Script help - Purging
Author: RJB
Date: Thu, 01 May 2003 16:47
Date: Thu, 01 May 2003 16:47
37 lines
2022 bytes
2022 bytes
Hi all,
I need help with a script.... I want to automatically purge when (entering
or exiting Dialog - makes no difference to me). Here's what I have -
program OnStartup;
procedure OnStartup;
begin
//Your code goes here
ADo('ReloadScripts');
ADo('PurgeSubscribedGroups');
ADo('GetNewHeadersInSubscribedGroups');
ADo('CollapseAllThreads');
end;
begin
end.
Is this purge line correct? I've tested it by clearing and re-downloading
the headers from several groups. By watching the logs it doesn't show it
working. It will sporadically purge *some* groups but not all. Is there a
problem with the sequence? Does sequence of statements matter at all?
Also, is there a listing of all the ADo( statements? I would like to make
more but I'm not sure of the statements. I've checked the help file under
scripting and it doesn't list them.
Any help would be appreciated and TIA!
--
RJB
5/1/2003 12:42:21 PM
*"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former."
-Albert Einstein
Re: [Dialog] Script help - Purging
Author: Marcus Mönnig
Date: Thu, 01 May 2003 18:10
Date: Thu, 01 May 2003 18:10
22 lines
2165 bytes
2165 bytes
On Thu, 1 May 2003 12:47:36 -0400, RJB wrote: > I need help with a script.... I want to automatically purge when (entering > or exiting Dialog - makes no difference to me). Why? It is already applying your purge rules every time you get new headers (and there actually are new headers). > Also, is there a listing of all the ADo( statements? I would like to make > more but I'm not sure of the statements. I've checked the help file under > scripting and it doesn't list them. In the Scripting window, click the "Show button config" button and then simply drag and drop commands into your script. It will insert the appropriate ADo(...) command for you. Marcus -- No replies in private e-mail, please, unless explicitly requested! Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/ Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Script help - Purging
Author: RJB
Date: Thu, 01 May 2003 19:47
Date: Thu, 01 May 2003 19:47
40 lines
2889 bytes
2889 bytes
On Thu, 1 May 2003 20:10:05 +0200, Marcus M�nnig wrote: > On Thu, 1 May 2003 12:47:36 -0400, RJB wrote: >> I need help with a script.... I want to automatically purge when (entering >> or exiting Dialog - makes no difference to me). > Why? It is already applying your purge rules every time you get new headers > (and there actually are new headers). Hmm, well I was playing around today and found the "Purge subscribed groups" button under "Groups". I clicked it and they purged a bunch of headers. I haven't changed the settings under "Default group options" since I started using Dog... set at 21 days without bodies and 14 days with. That tells me that something isn't purging correctly. So I thought of putting it in a script. Then I tried a little experiment. I cleared all the groups and brought in 5000 headers in all groups (regardless of whether there were 5000 or not) just to see if it was purging correctly. I checked the logs and it said "Purging in *newsgroup name* in only the first two groups. Maybe I'm wrong but shouldn't it say it's purging in *all* of the groups (since I cleared and reimported the headers)? >> Also, is there a listing of all the ADo( statements? I would like to make >> more but I'm not sure of the statements. I've checked the help file under >> scripting and it doesn't list them. > In the Scripting window, click the "Show button config" button and then > simply drag and drop commands into your script. It will insert the > appropriate ADo(...) command for you. > Marcus Ahh, this helps. Was this in the help file? -- RJB 5/1/2003 2:50:21 PM *Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it. -Gene Spafford
Re: [Dialog] Script help - Purging
Author: Marcus Mönnig
Date: Thu, 01 May 2003 20:58
Date: Thu, 01 May 2003 20:58
37 lines
3193 bytes
3193 bytes
On Thu, 1 May 2003 15:47:30 -0400, RJB wrote: >> Why? It is already applying your purge rules every time you get new headers >> (and there actually are new headers). > Hmm, well I was playing around today and found the "Purge subscribed > groups" button under "Groups". I clicked it and they purged a bunch of > headers. I haven't changed the settings under "Default group options" since > I started using Dog... set at 21 days without bodies and 14 days with. That > tells me that something isn't purging correctly. So I thought of putting it > in a script. Then I tried a little experiment. I cleared all the groups and > brought in 5000 headers in all groups (regardless of whether there were > 5000 or not) just to see if it was purging correctly. I checked the logs > and it said "Purging in *newsgroup name* in only the first two groups. > Maybe I'm wrong but shouldn't it say it's purging in *all* of the groups > (since I cleared and reimported the headers)? Well, when you get (new) header for the first time in a group it will naturally not purge them immediately, but when you get new headers again and there were actually new headers available on the server for a group, then it will purge the group. At least, this is how it is supposed to work. Let me know if you think it's misbehaving. >> In the Scripting window, click the "Show button config" button and then >> simply drag and drop commands into your script. It will insert the >> appropriate ADo(...) command for you. > >> Marcus > Ahh, this helps. Was this in the help file? Yep. dialog.chm://thescriptingwindow.htm Marcus -- No replies in private e-mail, please, unless explicitly requested! Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/ Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Script help - Purging
Author: RJB
Date: Fri, 02 May 2003 16:31
Date: Fri, 02 May 2003 16:31
51 lines
3414 bytes
3414 bytes
On Thu, 1 May 2003 22:58:30 +0200, Marcus M�nnig wrote: > On Thu, 1 May 2003 15:47:30 -0400, RJB wrote: >>> Why? It is already applying your purge rules every time you get new headers >>> (and there actually are new headers). >> Hmm, well I was playing around today and found the "Purge subscribed >> groups" button under "Groups". I clicked it and they purged a bunch of >> headers. I haven't changed the settings under "Default group options" since >> I started using Dog... set at 21 days without bodies and 14 days with. That >> tells me that something isn't purging correctly. So I thought of putting it >> in a script. Then I tried a little experiment. I cleared all the groups and >> brought in 5000 headers in all groups (regardless of whether there were >> 5000 or not) just to see if it was purging correctly. I checked the logs >> and it said "Purging in *newsgroup name* in only the first two groups. >> Maybe I'm wrong but shouldn't it say it's purging in *all* of the groups >> (since I cleared and reimported the headers)? > Well, when you get (new) header for the first time in a group it will > naturally not purge them immediately, but when you get new headers again and > there were actually new headers available on the server for a group, then it > will purge the group. At least, this is how it is supposed to work. Let me > know if you think it's misbehaving. >>> In the Scripting window, click the "Show button config" button and then >>> simply drag and drop commands into your script. It will insert the >>> appropriate ADo(...) command for you. >>> Marcus >> Ahh, this helps. Was this in the help file? > Yep. dialog.chm://thescriptingwindow.htm > Marcus Marcus, I've just done another test. Received 2691 headers from alt.comp.hardware after scoring, etc. Received headers after waiting a bit and received 5 bringing the total to 2696. Then I went to "Group" and "Purged selected groups" and the total went down to 2058. Am I correct to presume that it is not purging when getting new headers correctly? I have logs if you would like to see them. Or should I just log it in Mantis? -- RJB 5/2/2003 12:26:04 PM *While we may not be able to control all that happens to us, we can control what happens inside us. --Benjamin Franklin
Re: [Dialog] Script help - Purging
Author: Marcus Mönnig
Date: Mon, 05 May 2003 12:35
Date: Mon, 05 May 2003 12:35
19 lines
2390 bytes
2390 bytes
On Fri, 2 May 2003 12:31:24 -0400, RJB wrote: > Marcus, > I've just done another test. Received 2691 headers from alt.comp.hardware > after scoring, etc. Received headers after waiting a bit and received 5 > bringing the total to 2696. Then I went to "Group" and "Purged selected > groups" and the total went down to 2058. Am I correct to presume that it is > not purging when getting new headers correctly? I have logs if you would > like to see them. Or should I just log it in Mantis? I looked into it and found a bug. It is seldom and randomly purging at all with the current version. Fixed for the next release. Marcus -- No replies in private e-mail, please, unless explicitly requested! Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/ Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Script help - Purging
Author: RJB
Date: Mon, 05 May 2003 15:30
Date: Mon, 05 May 2003 15:30
26 lines
2025 bytes
2025 bytes
On Mon, 5 May 2003 14:35:19 +0200, Marcus M�nnig wrote: > On Fri, 2 May 2003 12:31:24 -0400, RJB wrote: >> Marcus, >> I've just done another test. Received 2691 headers from alt.comp.hardware >> after scoring, etc. Received headers after waiting a bit and received 5 >> bringing the total to 2696. Then I went to "Group" and "Purged selected >> groups" and the total went down to 2058. Am I correct to presume that it is >> not purging when getting new headers correctly? I have logs if you would >> like to see them. Or should I just log it in Mantis? > I looked into it and found a bug. It is seldom and randomly purging at all > with the current version. Fixed for the next release. > Marcus Thanks Marcus. :-) -- RJB 5/5/2003 11:30:10 AM *The wise speak when they have something to say, the fools speak when they have to say something. --Anonymous
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