gromox-compress(8)

πŸ“¦ version 3.6, in alpine 3.24, opensuse-leap 16.0

πŸ’… gromox-compress β€” the utility to recompress Gromox content files ✨

Okay bestie, so this is a page from the Gromox admin reference β€” it's gromox-compress(8) and it's literally the glow-up tool for your mailbox's content files. Let's get into it 🫢


✨ NAME ✨

gromox-compress β€” a utility to recompress Gromox content files. That's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

gromox-compress --cid {directory|file...}

πŸ’– DESCRIPTION πŸ’–

So here's the thing: gromox-compress compresses content files (attachments, bodytext) in an existing mailbox after the fact. Like, retroactively. It's giving "better late than never" energy ✨

And the reason you'd ever want this? Because the "exmdb_file_compression" config directive only controls compression in the groupware servers for newly created content files. So all your old files are just sitting there, uncompressed, living their truth. This utility is how you fix that. Iconic, honestly πŸ’…


πŸ”₯ OPTIONS πŸ”₯

  • --cid β€” treat all arguments given on the command-line as CID directories, and process them appropriately. Yes, that's the whole thing, no cap.
  • -n β€” dry run. In essence, this only builds the file lists and runs no compressors. Basically a vibe check for your file list β€” zero actual compression happens πŸ™ˆ
  • -z level β€” compression level to use. It defaults to 6. Pick your fighter ⭐

πŸ¦‹ EXAMPLES πŸ¦‹

Compress some:

gromox-compress --cid /var/lib/gromox/user/0/1/cid
/var/lib/gromox/user/0/2/cid

Or string that further to compress cid directories of all mailboxes:

find /var/lib/gromox/{user,domain} -type d -name cid -exec gromox-compress
--cid {} +
Ngl, that second one is main character energy β€” it just goes and finds every single cid directory and hits them all in one swoop πŸ‘‘

🌈 FORMATS 🌈

  • cid/[0-9]+: content file, with proptag-dependent header and trailer
  • cid/[0-9]+.v1z: content file, with proptag-dependent header and trailer, compressed
  • cid/[0-9]+.zst: content file, headerless, compressed

Those three little suffixes are the whole personality test, iykyk πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

gromox(7), exmdb_provider(4gx) β€” go read those too, bestie, they're worth it πŸ’–


Alright, that's the page! This lil' slice of the Gromox admin reference β€” gromox-compress(8) β€” is a wrap. Stay compressed, stay iconic, mwah πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from