[Catching up on old email...]
On 8 August 2001 at 21:57, Jerrad Pierce <[EMAIL PROTECTED]> wrote to
[EMAIL PROTECTED]:
> A)
> Support for gzipped (or maybe bzip2'd) files would be very useful.
> I see this as being ideal for someone who keeps
> lots of old mail but may not always need as ready access to it as
> other folders i.e.
>
> packf -file foo +Foo
> gzip -9 foo #Good compression here with multiple concatenated files
> msh foo.gz
You could do this by replacing the third line with a call to a script
that gunzips foo.gz before starting msh, and re-gzips after. You know
that, I bet, but I thought I'd point it out.
> B)
> What about / is it possible (nothing in man folder) to specify
> the base number for messages to pack to in a folder?
> Say I want message in folder Bar to start at 314, and not 1?
> (If it helps, think about later wishing to restore a pack'd
> folder to merge old and new contents, preserving order)
One easy/kludgey way to do the job is like this (again, scriptable):
# make empty +temp folder without changing current folder to it:
mkdir `mhpath +temp`
# move first message in current folder to become message 314 in +temp:
mv `mhpath first` `mhpath +temp`/314
# move rest of the messages to +temp (starting after 314):
refile all +temp
# move messages back to current folder ("@." is current folder)
# (after moving msgs, refile changes current folder to +temp):
refile all -src +temp @.
# remove +temp folder:
rmf
You might add some bulletproofing to be sure the script doesn't
fail at a bad place.
> C)
> The ability to repack by message date. I've got a perl script
> that needs a little tweaking to do this... But it might be useful for all,
> and worth implementing in the package? If not, is there some central place for
> sharing scripts?
You mean something besides running sortm before you run packf?
I'm not sure what a Perl script would do better. If you want to
pack a *copy* of a folder (without renumbering the messages in the
original folder), you can do this:
refile -link all +temp
sortm +temp
packf -file foo
rmf
There used to be a script archive somewhere. I haven't been following
this list carefully, though, so I'm not sure now. :-(
Jerry