cyrus-mbexamine8
Cyrus imap documentation examine a cyrus-format mailbox
Usage
mbexamine[-Cconfig-file] [-uuid]mailbox...mbexamine[-Cconfig-file] [-sseqnum]mailbox...mbexamine[-Cconfig-file]-qmailbox...mbexamine[-Cconfig-file]-cmailbox...
Overview
mbexamine will examine the header, index, and cache files of a cyrus format mailbox and dump the information contained therein. It can also limit its output to a specific uid or sequence number, through use of the -s and -u switches.
mbexamine reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C. It uses <configdirectory>/mailboxes.db to locate the mailbox on disk.
Options
-
-C config-file -
Use the specified configuration file config-file rather than the default imapd.conf(5).
-
-u uid, --uid=uid -
Dump information for the given uid only.
-
-s seqnum, --seq=seqnum -
Dump information for the given sequence number only.
-
-q, --check-quota -
Compare the quota usage in cyrus.index to the actual message file sizes and report any differences. If there are differences, the mailbox SHOULD be reconstructed.
-
-c, --check-message-files -
Compare the records in cyrus.index to the actual message files report any differences. This can help detect issues if messages files were manipulated manually and/or restored incorrectly.
Examples
mbexamine user.jsmith
Examine the mailbox hierarchy rooted at user.jsmith.
mbexamine -u 00000004 user.jsmith
Examine the mailbox hierarchy rooted at user.jsmith looking for messages with UID = 00000004.
mbexamine -q user.jsmith
Examine the mailbox hierarchy rooted at user.jsmith checking quotas.
mbexamine -c user.jsmith
Examine the mailbox hierarchy rooted at user.jsmith comparing index records to the actual message files in the mailbox directory.
Files
/etc/imapd.conf, <configdirectory>/mailboxes.db
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.
--check-message-files since Debian 13 (Trixie);
--check-quota since Debian 13 (Trixie);
--seq since Debian 13 (Trixie);
--uid since Debian 13 (Trixie);
-C since Debian 10 (Buster);
-c since Debian 10 (Buster).