Lines Matching refs:imap_stream
24 $imap_stream = imap_open($default_mailbox, $username, $password);
26 if ($imap_stream === false) {
32 $new_mailbox = create_mailbox($imap_stream, $mailbox_suffix, $message_count, $msg_type);
41 if (imap_reopen($imap_stream, $new_mailbox) === false) {
46 return $imap_stream;
52 * @param resource $imap_stream
55 function create_mailbox($imap_stream, $mailbox_suffix, $message_count, $msg_type= "simple"){
59 $mailboxes = imap_getmailboxes($imap_stream, $mailbox, '*');
70 if (imap_createmailbox($imap_stream, $mailbox) === false) {
76 populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type);
85 * @param resource $imap_stream
88 function populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type = "simple"){
130 imap_append($imap_stream, $mailbox, $msg);