limit imap users and create new mailbox string

This should fix #1902. A very simple yet usable approach. Also will it be possible to use specific url schemes mentioned in the same issue.
We (should) have apis for this-

@icewind1991 @blizzz can you help out here? THX