IMAP

Connecting to a mailbox

Install IMAP extension

List all folders in the mailbox

Finding messages in the mailbox