IMAP_REOPEN(3) 1 IMAP_REOPEN(3)imap_reopen - ReopenIMAPstream to new mailboxSYNOPSIS
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)
Check Out this Related Man Page
IMAP_DELETE(3) 1 IMAP_DELETE(3)imap_delete - Mark a message for deletion from current mailboxSYNOPSIS
bool imap_delete (resource $imap_stream, int $msg_number, [int $options])
DESCRIPTION
Marks messages listed in $msg_number for deletion. Messages marked for deletion will stay in the mailbox until either imap_expunge(3) is
called or imap_close(3) is called with the optional parameter CL_EXPUNGE.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $msg_number
- The message number
o $options
- You can set the FT_UID which tells the function to treat the $msg_number argument as an UID.
RETURN VALUES
Returns TRUE.
EXAMPLES
Example #1
imap_delete(3) example
<?php
$mbox = imap_open("{imap.example.org}INBOX", "username", "password")
or die("Can't connect: " . imap_last_error());
$check = imap_mailboxmsginfo($mbox);
echo "Messages before delete: " . $check->Nmsgs . "<br />
";
imap_delete($mbox, 1);
$check = imap_mailboxmsginfo($mbox);
echo "Messages after delete: " . $check->Nmsgs . "<br />
";
imap_expunge($mbox);
$check = imap_mailboxmsginfo($mbox);
echo "Messages after expunge: " . $check->Nmsgs . "<br />
";
imap_close($mbox);
?>
NOTES
Note
IMAP mailboxes may not have their message flags saved between connections, so imap_expunge(3) should be called during the same con-
nection in order to guarantee that messages marked for deletion will actually be purged.
SEE ALSO imap_undelete(3), imap_expunge(3), imap_close(3).
PHP Documentation Group IMAP_DELETE(3)
hi
i am having a file of following kind:
20015#67143645#143123#4214
62014#67143148#67143159#456
15432#67143568#00143862#4632
54112#67143752#0067143657#143
54623#67143357#167215#34531
65446#67143785#143598#7456
75642#67143546#156146#845
24464#67143465#172532#6544... (5 Replies)
I am running Freebsd 6.1, Postfix 2.2, and Courier-IMAP 4.1 I can telnet to port 143 I can't connect to IMAP server using microsoft outlook or any client. The authdaemon is running and working correctly I did netstat -an | grep -i list and it shows port 143 bound to the localhost 127.0.0.1. I can... (1 Reply)
Hi,
I am new to HP-UX environment. Could someone help me giving commands to recycle the server and how to go to single user mode.
Thanks
Hemanth (3 Replies)
Hi,
Some of the users on my freebsd server are getting the "unable to process from lines" error when accessing their mailbox.
I've checked their mailbox and found that there was a blank line at the top of the mailbox.
Everytime i remove it, it appears again sometime later.
I've tried... (1 Reply)
Hello. I Need Some Help.
I'm trying to telnet the IMAP port (to verify if is open).
telnet myserver 143, but im getting this error: Connection closed by foreign host.
The /var/log/syslog shows me following:
imapd: error: cannot execute /usr/sbin/imapd: No such file or directory
netstat... (3 Replies)
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)