IMAP4 will retrieve the message, but first set up your TCP/IP and SSL connections.