Added XOAUTH2 login option, fixed a bug with mailbox structure generation