Add more flexibility to IMAP connection - take into account delimiter, returned from server