Split sqimap_mailbox_option_list() into two functions to facilitate template development.