Streamline checking of email server response code
Use stream for connection
Obtain both POP3 CAPA and IMAP CAPABILITY