imap_reopen(3) php man page | unix.com

Man Page: imap_reopen

Operating Environment: php

Section: 3

IMAP_REOPEN(3)								 1							    IMAP_REOPEN(3)

imap_reopen - ReopenIMAPstream to new mailbox

SYNOPSIS
bool imap_reopen (resource $imap_stream, string $mailbox, [int $options], [int $n_retries])
DESCRIPTION
Reopens the specified stream to a new $mailbox on an IMAP or NNTP server.
PARAMETERS
o $ imap_stream -An IMAP stream returned by imap_open(3). o $mailbox - The mailbox name, see imap_open(3) for more information o $options - The $options are a bit mask with one or more of the following: o OP_READONLY - Open mailbox read-only o OP_ANONYMOUS - Don't use or update a .newsrc for news (NNTP only) o OP_HALFOPEN - For IMAP and NNTP names, open a connection but don't open a mailbox. o OP_EXPUNGE - Silently expunge recycle stream o CL_EXPUNGE - Expunge mailbox automatically upon mailbox close (see also imap_delete(3) and imap_expunge(3)) o $n_retries - Number of maximum connect attempts
RETURN VALUES
Returns TRUE if the stream is reopened, FALSE otherwise.
CHANGELOG
+--------+------------------+ |Version | | | | | | | Description | | | | +--------+------------------+ | 5.2.0 | | | | | | | $n_retries added | | | | +--------+------------------+
EXAMPLES
Example #1 imap_reopen(3) example <?php $mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors())); // ... imap_reopen($mbox, "{imap.example.org:143}INBOX.Sent") or die(implode(", ", imap_errors())); // .. ?> PHP Documentation Group IMAP_REOPEN(3)
Related Man Pages
imap_open(3) - php
imap_delete(3) - php
imap_fetch_overview(3) - php
imap_getsubscribed(3) - php
imap_reopen(3) - php
Similar Topics in the Unix Linux Community
data processing
imapsync 1.249 (Default branch)
imapsync 1.250 (Default branch)
imapsync 1.252 (Default branch)
Create shell script to extract unique information from one file to a new file.