imap_close

(PHP 3, PHP 4, PHP 5)

imap_close -- Close an IMAP stream

Description

bool imap_close ( resource imap_stream [, int flag] )

Closes the imap stream. Takes an optional flag CL_EXPUNGE, which will silently expunge the mailbox before closing, removing all messages marked for deletion.

See also: imap_open().



imap_close
vhegde at myersinternet dot com
28-Aug-2001 02:48
Instead of using the CL_EXPUNGE FLAG,
you can also use the imap_expunge function to delete all the messages marked for deletion, before calling the imap_close function.

<imap_clearflag_fullimap_createmailbox>
 Last updated: Tue, 15 Nov 2005