[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maximum disk space for archives?


> 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
> program?

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@xxxxxxxxxxx _ http://www.liepins.de/ __________
"By hiding the eyes, mirrorshades prevent the forces of normalcy from
realising that one is crazed and possibly dangerous." -Bruce Sterling

[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]