imap_close Close an IMAP stream &reftitle.description; boolimap_close IMAP\Connectionimap intflags0 Closes the imap stream. &reftitle.parameters; &imap.imap-parameter.imap; flags If set to CL_EXPUNGE, the function will silently expunge the mailbox before closing, removing all messages marked for deletion. You can achieve the same thing by using imap_expunge &reftitle.returnvalues; &return.success; &reftitle.changelog; &Version; &Description; &imap.changelog.imap-param; &reftitle.seealso; imap_open