
Matthew Cengia wrote:
On 2012-02-13 12:56, Jason White wrote:
Craig Sanders <cas@taz.net.au> wrote:
mbox files can easily be renamed to something like listname.YYYYMM or listname.YYYYMM-YYYYMM and then optionally compressed (mutt can open compressed mbox files).
I just tested and found that Mutt 1.5.21 (the version currently installed here) can read Mbox files compressed with xz. That's impressive.
It's not really that impressive. It'll read mbox if you tell it how:
mattcen@andy:tmp$ cat /etc/Muttrc.d/compressed-folders.rc # Use folders which match on \\.gz$ or \\.bz2$ as [gb]zipped folders: open-hook \\.gz$ "gzip -cd '%f' > '%t'" close-hook \\.gz$ "gzip -c '%t' > '%f'" append-hook \\.gz$ "gzip -c '%t' >> '%f'" open-hook \\.bz2$ "bzip2 -cd '%f' > '%t'" close-hook \\.bz2$ "bzip2 -c '%t' > '%f'" append-hook \\.bz2$ "bzip2 -c '%t' >> '%f'" open-hook \\.xz$ "xz -cd %f > %t" close-hook \\.xz$ "xz -c %t > %f" append-hook \\.xz$ "xz -c %t >> %f"
Note that (unless I'm mistaken) this means mutt will decompress the entire mbox (into, say, /tmp) before doing anything useful with it. So if you have a 16GB mbox (don't ask) bad juju will occur.