Coding style, use enums for IMAP method, standard way of accessing enums