MBPATH(8)

πŸ’– MBPATH(8) β€” Cyrus IMAP πŸ’–

okay bestie, welcome to mbpath, the little Cyrus IMAP bestie that turns your mailbox names into actual filesystem paths ✨ no cap, that's literally the whole job. (Also hi, this is the Cyrus IMAP documentation, mwah πŸ’…)


🌸 NAME 🌸

mbpath β€” translate mailbox names to filesystem paths πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

mbpath [ -C config-file ] [ -l ] [ -m ] [ -q ] [ -s ] [ -u | -p ] [ -a | -A | -M | -S | -U ] [ mailbox-names... ]

✨ DESCRIPTION ✨

so you hand it a mailbox name, or a whole space separated list of mailbox names, and mbpath outputs the filesystem path(s) of the mailbox. that's it. that's the gig πŸ‘‘

by default, you get the mailboxes' data partition paths (same as -D, since -D is the default and she is the moment). wanna pick a different path? scroll down to Selectors and choose your fighter πŸ’–

also she reads her config options out of the imapd.conf(5) file unless you tell her otherwise with -C. and she uses <configdirectory>/mailboxes.db to locate the mailboxes on disk. iykyk πŸ”₯


πŸ’… OPTIONS πŸ’…

  • -C config-file β€” use the config file config-file you specified instead of the default imapd.conf(5). be specific bestie, she loves that 🌈
  • -l, --local-only β€” local mailboxes only. if a mailbox is remote or just straight up doesn't exist, she exits with an error. no pretending, no vibes-based guessing 😭
  • -m β€” output the path to the metadata files (if they're different from the message files). legacy behavior, so honestly just use -M. it's giving vintage πŸŽ€
  • -q, --quiet β€” suppress any error output. shhh. she's not gonna tell you what went wrong 🀫
  • -s, --stop β€” if any error occurs, stop processing the list of mailboxes and exit. one strike and she's out πŸ’€
  • -u, --userids β€” the mailbox-names you gave her are actually userids, not mailboxes. important distinction, don't come for her 🫢
  • -p, --paths β€” the mailbox-names you gave her are actually UNIX mailbox paths, not mailboxes. yes she's flexible, yes she ate ⭐

πŸ‘‘ SELECTORS πŸ‘‘

this is the section where you pick which path(s) she shows you. choose wisely, queen πŸ‘Έ

  • -A, --archive β€” show the mailbox archive path πŸ“¦
  • -D, --data β€” show the mailbox data path (this is the default, in case you forgot, and you did, it's fine) πŸ’–
  • -M, --metadata β€” show the mailbox metadata path (same as -m, twins fr fr) ✨
  • -S, --sieve β€” show the user sieve scripts path 🌸
  • -U, --user-files β€” show the user files path (seen, sub, etc) πŸ¦‹
  • -a, --all β€” show all paths, as if every single selector was specified. she's doing the most and we love her for it πŸ”₯

🌈 EXAMPLES 🌈

okay so here's the group chat receipts, run them exactly like this:

mbpath user.jsmith

Display the data path for mailbox user.jsmith. πŸ’–

mbpath -M user.jsmith

Display the metadata path for mailbox user.jsmith. ✨

mbpath -u -S jsmith

Display the sieve scripts path for user jsmith. πŸŽ€


πŸ“ FILES πŸ“

  • /etc/imapd.conf
  • <configdirectory>/mailboxes.db

these are the files she's obsessed with. periodt πŸ’…


🧚 SEE ALSO 🧚


πŸ’œ AUTHOR πŸ’œ

The Cyrus Team, Nic Bernstein (Onlight) β€” iconic behavior honestly, thank you for your service 🫢


1993–2026, The Cyrus Team. all rights reserved, all vibes preserved πŸ‘‘


lowkey a reminder bestie: everything above is exactly what she does, no invented features, no extra lore. what you see is what you get πŸ’―

okay that's the whole page, go forth and translate those mailbox names, main character energy only 🌟

this was Cyrus IMAP mbpath from version 3.12.4, dated Sep 09, 2026 β€” mwah, take care of her, she's iconic πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from