This access drivers use php imap functions to browse a mailbox and retrieve the emails and attachments contained in it. Warning, the php_imap extension must be installed and loaded. And for your info, it's not because it's "imap" that i's limited to imap mailbox, POP3 is also supported.
Here are some test samples for connecting well-known mailboxes :