Lines Matching refs:imap_stream
70 $imap_stream = imap_open($default_mailbox, $username, $password);
72 if ($imap_stream === false) {
78 $new_mailbox = create_mailbox($imap_stream, $mailbox_suffix, $message_count, $msg_type);
87 if (imap_reopen($imap_stream, $new_mailbox) === false) {
92 return $imap_stream;
98 * @param resource $imap_stream
101 function create_mailbox($imap_stream, $mailbox_suffix, $message_count, $msg_type= "simple"){
105 $mailboxes = imap_getmailboxes($imap_stream, $mailbox, '*');
116 if (imap_createmailbox($imap_stream, $mailbox) === false) {
122 populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type);
131 * @param resource $imap_stream
134 function populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type = "simple"){
176 imap_append($imap_stream, $mailbox, $msg);