API documentation. The IMAP class isnt as good as i hoped.