Mail_IMAP::close()

bool close(void)

Closes the imap stream. This method is a wrapper for imap_close.

The second argument of imap_close will expunge all messages marked for deletion before closing the stream. Specify the constant CL_EXPUNGE in the Mail_IMAP::setOptions method or $option property to expunge the mailbox before closing the stream.

Method summary:

return bool
access public
see imap_close
Execution time: 0.08 seconds