Re: Maximum disk space for archives?

2003-12-12 02:46:29

I would like to set a maximum disk space that archives can use -
similar to MAXSIZE (where old messages are deleted for new ones) but
setting the maximum disk space instead of number of messages. This
does not appear to be an option for the resource file.

Could anybody suggest a way of doing this, apart from hacking the

Unless there are options or tricks I don't
know, there is no way to do this. Maybe
you can approximate the needed disk space
by calculating some average mail size and
using that to see how many mails you can
fit in x MB. Though if you have
attachments frequently, this will not
work. For pure text mails it should work I

Or you could write some insane script that
runs mhonarc, looks how much output was
generated, tweaks the -maxsize option and
runs it again, until the files are using
the desired amount of space.

Or hack mhonarc.

Though I wonder how much work it would be
to include such an option. After all the
script would have to calculate the disk
space for each message, including the
surrounding HTML, attachments and so on.
But I don't know.

Just a few thoughts.


Lasar Liepins _ lasar(_at_)liepins(_dot_)net _ __________
"By hiding the eyes, mirrorshades prevent the forces of normalcy from
realising that one is crazed and possibly dangerous." -Bruce Sterling

<Prev in Thread] Current Thread [Next in Thread>