int imap_close
Close the imap stream. Takes an optional flag CL_EXPUNGE, which will silently expunge the mailbox before closing.