Basic IMAP retrieval script