imap_open

imap_open -- Open an IMAP stream to a mailbox

Description

int imap_open(string mailbox, string username, string password, int flags);

Returns an IMAP stream on success and false on error.

the options are a bit mask with noe or more of the following: