Support configurable IMAP prefix per mailbox
Add support for modifying the IMAP inbox namespace prefix on a per-mailbox basis. This allows for clean, seamless migrations from legacy IMAP software and other hosting without the need to resync any mailboxes.
With contributions from @helmo
Closes #5918 (closed)