well... the manual states the following:
<!-----!>
Note that these functions are not limited to the IMAP protocol, despite their name. The underlying c-client library also supports NNTP, POP3 and local mailbox access methods.
<!-----!>
and the imap library should do the trick
http://www.php.net/manual/ref.imap.php