Use IMAP SPECIAL-USE extension to get special folder settings from the IMAP server.