🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Rogerh Fri, 23 Jan 2004 16:50
[Dialog] Script for purging
#141973
Author: Rogerh
Date: Fri, 23 Jan 2004 16:50
15 lines
1517 bytes
I am trying to do a script on shutdown for purging groups and folders, I
have tried this (after the usual gegin etc)

ADo('Purgesubscribedgroups/folders')

But it dont seem to work.  Tried it on startup as well, no joy.  I
obviously have the wording wrong, any suggestions?

Cheers
Roger

-- 
Roger Haynes
1/12 Nb 'Kinver'
Air Traffic Controllers do it with *minimum* separation.
Re: [Dialog] Script for purging
#142004
Author: Antonio 'Gandalf' Favata
Date: Sat, 24 Jan 2004 02:34
13 lines
1910 bytes
Rogerh on news.software.readers:

> ADo('Purgesubscribedgroups/folders')

AFAIK «ADo('PurgeSubscribedGroups');» will work on folders too.

> I obviously have the wording wrong, any suggestions?

Do you know you can drag'n'drop buttons to ADo actions from the
«Button config» into a personal script?
-- 
Fare Well! | Freeware powerful newsreader with multilingual GUI
G          | 40tude Dialog 2.0.10.1 ~ <http://snurl.com/dialog>
Re: [Dialog] Script for purging
#142026
Author: RogerH
Date: Sat, 24 Jan 2004 14:43
20 lines
1717 bytes
On Sat, 24 Jan 2004 03:34:14 +0100, Antonio 'Gandalf' Favata wrote:

> Rogerh on news.software.readers:
> 
>> ADo('Purgesubscribedgroups/folders')
> 
> AFAIK «ADo('PurgeSubscribedGroups');» will work on folders too.
> 
>> I obviously have the wording wrong, any suggestions?
> 
> Do you know you can drag'n'drop buttons to ADo actions from the
> «Button config» into a personal script?

No I didn't.  Thanks that makes life easier.

Roger
-- 
Roger Haynes
1/12 Nb 'Kinver'
Air Traffic Controllers do it with *minimum* separation.
Re: [Dialog] Script for purging
#142156
Author: toolman48
Date: Sun, 25 Jan 2004 23:57
28 lines
2171 bytes
On Sat, 24 Jan 2004 14:43:05 +0000, RogerH wrote:

> On Sat, 24 Jan 2004 03:34:14 +0100, Antonio 'Gandalf' Favata wrote:
> 
>> Rogerh on news.software.readers:
>> 
>>> ADo('Purgesubscribedgroups/folders')
>> 
>> AFAIK «ADo('PurgeSubscribedGroups');» will work on folders too.
>> 
>>> I obviously have the wording wrong, any suggestions?
>> 
>> Do you know you can drag'n'drop buttons to ADo actions from the
>> «Button config» into a personal script?
> 
> No I didn't.  Thanks that makes life easier.
> 
> Roger

Did you guys get this working yet?  I've tried it and it seems to work OK
in the scripting set up and test window, but when I actually use it, it
doesn't purge anything.  I know what it is ~supposed~ to do - I put a purge
subscribed groups and folders button on my toolbar and it works fine.  But
the script apparently doesn't run automatically when I shut down.  Other
scripts are enabled and work...
-- 
For direct replies please email toolman48@myrealzzzbox.com
(Just rip the zzz's off the address before sending...) Thanks!
Re: [Dialog] Script for purging
#142160
Author: toolman48
Date: Mon, 26 Jan 2004 00:16
42 lines
2489 bytes
On Sun, 25 Jan 2004 23:57:40 GMT, toolman48 wrote:

> On Sat, 24 Jan 2004 14:43:05 +0000, RogerH wrote:
> 
>> On Sat, 24 Jan 2004 03:34:14 +0100, Antonio 'Gandalf' Favata wrote:
>> 
>>> Rogerh on news.software.readers:
>>> 
>>>> ADo('Purgesubscribedgroups/folders')
>>> 
>>> AFAIK «ADo('PurgeSubscribedGroups');» will work on folders too.
>>> 
>>>> I obviously have the wording wrong, any suggestions?
>>> 
>>> Do you know you can drag'n'drop buttons to ADo actions from the
>>> «Button config» into a personal script?
>> 
>> No I didn't.  Thanks that makes life easier.
>> 
>> Roger
> 
> Did you guys get this working yet?  I've tried it and it seems to work OK
> in the scripting set up and test window, but when I actually use it, it
> doesn't purge anything.  I know what it is ~supposed~ to do - I put a purge
> subscribed groups and folders button on my toolbar and it works fine.  But
> the script apparently doesn't run automatically when I shut down.  Other
> scripts are enabled and work...

Here's my whole script before compiling.  Am I missing something?

program OnShutdown;

procedure OnShutdown;
begin
ADo('PurgeSubscribedGroups');
end;

begin
end.
-- 
For direct replies please email toolman48@myrealzzzbox.com
(Just rip the zzz's off the address before sending...) Thanks!
Re: [Dialog] Script for purging
#142171
Author: foxidrive
Date: Mon, 26 Jan 2004 06:58
25 lines
2464 bytes
On Mon, 26 Jan 2004 00:16:48 GMT, toolman48 wrote:

> On Sun, 25 Jan 2004 23:57:40 GMT, toolman48 wrote:
>> Did you guys get this working yet?  I've tried it and it seems to work OK
>> in the scripting set up and test window, but when I actually use it, it
>> doesn't purge anything.  I know what it is ~supposed~ to do - I put a purge
>> subscribed groups and folders button on my toolbar and it works fine.  But
>> the script apparently doesn't run automatically when I shut down.  Other
>> scripts are enabled and work...
> 
> Here's my whole script before compiling.  Am I missing something?
> 
> program OnShutdown;
> 
> procedure OnShutdown;
> begin
> ADo('PurgeSubscribedGroups');
> end;
> 
> begin
> end.

Purging may depend on the settings you have enabled under the
default/individual group options for purging - what is it that you expect
it to do, which it isn't doing?
Re: [Dialog] Script for purging
#142187
Author: toolman48
Date: Mon, 26 Jan 2004 13:30
36 lines
3146 bytes
On Mon, 26 Jan 2004 06:58:00 GMT, foxidrive wrote:

> On Mon, 26 Jan 2004 00:16:48 GMT, toolman48 wrote:
> 
>> On Sun, 25 Jan 2004 23:57:40 GMT, toolman48 wrote:
>>> Did you guys get this working yet?  I've tried it and it seems to work OK
>>> in the scripting set up and test window, but when I actually use it, it
>>> doesn't purge anything.  I know what it is ~supposed~ to do - I put a purge
>>> subscribed groups and folders button on my toolbar and it works fine.  But
>>> the script apparently doesn't run automatically when I shut down.  Other
>>> scripts are enabled and work...
>> 
>> Here's my whole script before compiling.  Am I missing something?
>> 
>> program OnShutdown;
>> 
>> procedure OnShutdown;
>> begin
>> ADo('PurgeSubscribedGroups');
>> end;
>> 
>> begin
>> end.
> 
> Purging may depend on the settings you have enabled under the
> default/individual group options for purging - what is it that you expect
> it to do, which it isn't doing?

There is a binary folder in the data folder of the Dialog program folder.
When multipart attachments are downloaded, they are stored in this binary
folder so they can be joined.  Purging deletes these saved partial files.
I can confirm this by using my toolbar button to purge.  The script will
not do this.  As near as I can tell, the script does nothing.
-- 
For direct replies please email toolman48@myrealzzzbox.com
(Just rip the zzz's off the address before sending...) Thanks!
Re: [Dialog] Script for purging
#142189
Author: foxidrive
Date: Mon, 26 Jan 2004 14:40
38 lines
3240 bytes
> On Mon, 26 Jan 2004 06:58:00 GMT, foxidrive wrote:

>> Purging may depend on the settings you have enabled under the
>> default/individual group options for purging - what is it that you expect
>> it to do, which it isn't doing?
> 
> There is a binary folder in the data folder of the Dialog program folder.
> When multipart attachments are downloaded, they are stored in this binary
> folder so they can be joined.  Purging deletes these saved partial files.
> I can confirm this by using my toolbar button to purge.  The script will
> not do this.  As near as I can tell, the script does nothing.

I can confirm that this script does nothing to the 178 files in data\binary
and they date back to my last backup and manual purge, as near as I can
tell.

Program Purge;
Begin
ADo('PurgeSubscribedGroups');
End.


However, using "Purge subscribed groups/folders" under the group menu
doesn't affect the files either.
I redirected a DIR into a file before and after the purge item and then
compared them with FC - no change.

After compacting my database the files in data\binary are still unchanged,
so I surmise they are attachments from emails that have not yet been
deleted.

The help suggests that automatic purging is related to the The "Group
settings" Window and the age of the article, as set there.  One day seems
to be the minimum time that messages will be automatically purged after.

To me, my tests suggest that the "Purge subscribed groups/folders" operates
on messages and attachments which have passed the Purging threshold date...
YMMV.
Re: [Dialog] Script for purging
#142193
Author: foxidrive
Date: Mon, 26 Jan 2004 15:46
17 lines
2500 bytes
On Mon, 26 Jan 2004 14:40:36 GMT, foxidrive wrote:

> After compacting my database the files in data\binary are still unchanged,
> so I surmise they are attachments from emails that have not yet been
> deleted.

I am in error here (won't be the last time either!).   Viewing the files in
data\binary show them to be from newsgroups, as you said previously.

Some are even *replies* to multipart binary postings, which carry the same
subject line.
 
As far as I can see Dialog doesn't give a hoot about the files in
data\binary and I simply deleted them all.  If you are as blase as me about
them then you can create a batch file to delete the data\binary folder
contents on dialog startup, or manually at any other time. Perhaps dialog
can be made to launch such a batch file on shutdown...?
Re: [Dialog] Script for purging
#142200
Author: toolman48
Date: Mon, 26 Jan 2004 18:01
30 lines
3233 bytes
On Mon, 26 Jan 2004 15:46:21 GMT, foxidrive wrote:

> On Mon, 26 Jan 2004 14:40:36 GMT, foxidrive wrote:
> 
>> After compacting my database the files in data\binary are still unchanged,
>> so I surmise they are attachments from emails that have not yet been
>> deleted.
> 
> I am in error here (won't be the last time either!).   Viewing the files in
> data\binary show them to be from newsgroups, as you said previously.
> 
> Some are even *replies* to multipart binary postings, which carry the same
> subject line.
>  
> As far as I can see Dialog doesn't give a hoot about the files in
> data\binary and I simply deleted them all.  If you are as blase as me about
> them then you can create a batch file to delete the data\binary folder
> contents on dialog startup, or manually at any other time. Perhaps dialog
> can be made to launch such a batch file on shutdown...?

I can verify that IF I am in the correct category tab for the server that
put those binary files in the folder then a manual purge using the purge
button on the toolbar DOES INDEED delete these files.  My purge settings
are to delete all message bodies on every purge.  I had a 100MB of files in
there when I first found them.  I don't want to accumulate them ad nauseum
until my hard drive is full!  I was trying for an automated way to purge
them and feel we are oh so close...
-- 
For direct replies please email toolman48@myrealzzzbox.com
(Just rip the zzz's off the address before sending...) Thanks!
Re: [Dialog] Script for purging
#142202
Author: foxidrive
Date: Mon, 26 Jan 2004 18:37
44 lines
3707 bytes
On Mon, 26 Jan 2004 11:01:40 -0700, toolman48 wrote:

> On Mon, 26 Jan 2004 15:46:21 GMT, foxidrive wrote:
> 
>> On Mon, 26 Jan 2004 14:40:36 GMT, foxidrive wrote:
>> 
>>> After compacting my database the files in data\binary are still unchanged,

Now that I look in the Dialog folder, I found that my compacting didn't
finish properly, even though Dialog said it did.

FWIW Compacting *did* delete the files in the binary folder, as it only has
.bpa files created today in there (my purge settings are to delete after 1
day).
 
>> As far as I can see Dialog doesn't give a hoot about the files in
>> data\binary and I simply deleted them all.  If you are as blase as me about
>> them then you can create a batch file to delete the data\binary folder
>> contents on dialog startup, or manually at any other time. Perhaps dialog
>> can be made to launch such a batch file on shutdown...?
 
> I can verify that IF I am in the correct category tab for the server that
> put those binary files in the folder then a manual purge using the purge
> button on the toolbar DOES INDEED delete these files.  

I think Marcus might appreciate it if you drop a note into Mantis about the
accumulation of files.

> My purge settings
> are to delete all message bodies on every purge.  I had a 100MB of files in
> there when I first found them.  I don't want to accumulate them ad nauseum
> until my hard drive is full!  I was trying for an automated way to purge
> them and feel we are oh so close...

If you can't get the acript to work, then an alternative is to make a
shortcut to this batch file for starting Dialog, and change the path to
dialog in both lines, for your system. (Syntax is for Win2k and higher, at
least)  It'll remove the files on startup, rather than shutdown.


@echo off
del /f /q "C:\Program Files\40tude\data\binary\*.*"
start ""  "C:\Program Files\40tude\dialog.exe"
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