Foldup 2.0

Tom Muddletyn (ten.eerfrot@445sa)
Fri, 06 Sep 1996 23:53:15 -0400

Foldup 1.x was an occasionally useful (i used it occasionally anyhow!)
REXX script that would report stats about the contents of YARN folders,
and it also could delete any duplicates found (useful for cleaning up
those 'mailed'/'posted' folders)...

Well, I just put 2.0 online... now it can delete messages from folders
based on message age (based on the DATE header)! Oh how long have I wanted
a util to be able to "expire" folders... a long time. So, I finally sat
down and did it. And it's done. And it works. Yeehoo.

Anyone interested can refer to:

http://www.io.org/~tm/rexxbells.html#foldup

or skip the middleman

http://www.io.org/~tm/files/foldup20.zip

(note: we at io had a drive crash on the web server... it may not be
back online until tomorrow... one way to find out...)

This script only works with Standard OS/2 REXX. If anyone really wants me
to modify it to be compatible with Win95/NT and OS/2 Object REXX, or PCDOS
Rexx... let me know... i'll probably do it if there's interest.

Here's description of everything Foldup does from it's new little doc
file... you can stop reading now.

* Foldup scans YARN folders and reports a statistical breakdown
of the folder's contents. It reports the number of, the largest,
smallest, and average sizes of the messages.

* Foldup can be used to find and delete DUPLICATE messages
in YARN folders. This is especially useful to eliminate
duplicates in your "posted" and/or "mailed" folders, which
are generated when you edit outgoing replies.

* Foldup can delete old messages in a folder. You can specify
how many days old the oldest message you want to keep in the
folder and foldup will find and mark any older messages for
deletion (based on the DATE header of the message). Additional
statistics reporting the oldest and newest message ages are
generated.

* Foldup can be run in "test" mode, so that you can watch
it in operation, but no actual changes will be written to
your folder. You can use this switch with the /K# switch
if you just want to see stats on the age of folder messages.

* Foldup does *NOT* actually delete any messages when it finds
DUPLICATES or OLD messages. It simply marks them for deletion.
The next time you enter/exit that folder, YARN will recognise
the messages marked for deletion and do the dirty work.

* Foldup checks folders for possible corruption before it
attempts to make any changes. An error will be generated,
and the program halted, if a seemingly bad folder is detected.

-- 
 .._,.,._.,.,.,_,._,,,.,_,.,_,..,..,_..,.,.,_,,.,.,_._.,_.,.._,.,_..,.
  Tim Muddleton =-= the Wood between the Worlds =-= as544@torfree.net
  -=-=-=- probably better not read Martin Eden by Jack London -=-=-=-
 ~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~
    Yarn/2 Bells & Whistles Page: http://www.io.org/~tm/bells2.html