Detect how an account is logging into email imap or pop