[imap/imapd.c] Overhaul how imapd.c determines whether or not to create the mailbox locally, or remotely.