C-client mail access routines for IMAP and POP protocols