recover-mailbox.sh(1) - Recover folders that exist in Cassandra but are missing in Dovecot's index files
SYNOPSIS
recover-mailbox.sh userid [OPTIONS]
DESCRIPTION
This script detects whether there are any folders that exist in Cassandra, but are missing in Dovecot's index files. If "recover" parameter is given, these folders are added to the index. Since some of the folders may already have been recreated (especially INBOX and other autocreated folders), the result may be that there are both "INBOX" and "INBOX-recovered-lost-folder-1234". This script also merges these folders together.
OPTIONS
- recover
- By default only the missing folders are printed. The script exits with status code 0 if there are no missing folders, 1 if there are missing folders. If recover is supplied, also force-resync the user and merge the recovered folders. The script exits with 0 if there was nothing to be done or if the recovery was successful. A non-0 exit code means an internal error occurred and the recovery was not successful.
REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List dovecot@dovecot.org. Information about reporting bugs is available at: https://dovecot.org/bugreport.html
SEE ALSO
doveadm(1), doveadm-fetch(1), doveadm-force-resync(1), doveadm-mailbox(1), doveadm-mail-fs(1)