Lines Matching refs:imap_stream
78 …$imap_stream = imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, flags…
80 if ($imap_stream === false) {
85 $new_mailbox = create_mailbox($imap_stream, $mailbox_suffix, $message_count, $simpleMessages);
90 if (imap_reopen($imap_stream, $new_mailbox) === false) {
94 return $imap_stream;
100 * @param resource $imap_stream
107 function create_mailbox($imap_stream, string $mailbox_suffix, int $message_count, bool $simpleMessa…
110 $mailboxes = imap_getmailboxes($imap_stream, $mailbox, '*');
121 if (imap_createmailbox($imap_stream, $mailbox) === false) {
127 populate_mailbox($imap_stream, $mailbox, $message_count, $simpleMessages);
152 * @param resource $imap_stream
157 function populate_mailbox($imap_stream, string $mailbox, int $message_count, bool $simpleMessages =…
196 imap_append($imap_stream, $mailbox, $msg);