IMAP client protocol implementation using PHP5