/PHP-8.0/ext/imap/tests/ |
H A D | imap_clearflag_full_basic.phpt | 14 $imap_stream = setup_test_mailbox("imapclearflagfullbasic", 10); 16 $check = imap_check($imap_stream); 26 var_dump(imap_search($imap_stream, "SEEN")); 27 var_dump(imap_search($imap_stream, "ANSWERED")); 28 var_dump(imap_search($imap_stream, "FLAGGED")); 29 var_dump(imap_search($imap_stream, "DELETED")); 35 var_dump(imap_search($imap_stream, "SEEN")); 36 var_dump(imap_search($imap_stream, "ANSWERED")); 37 var_dump(imap_search($imap_stream, "FLAGGED")); 38 var_dump(imap_search($imap_stream, "DELETED")); [all …]
|
H A D | imap_append_basic.phpt | 14 $imap_stream = setup_test_mailbox("imapappendbaisc", 0); 16 $mb_details = imap_mailboxmsginfo($imap_stream); 18 var_dump(imap_append($imap_stream, $mb_details->Mailbox 26 var_dump(imap_append($imap_stream, $mb_details->Mailbox 34 $check = imap_check($imap_stream); 38 var_dump(imap_headers($imap_stream)); 40 imap_close($imap_stream);
|
H A D | imap_body_basic.phpt | 14 $imap_stream = setup_test_mailbox("imapbodybasic", 1); 16 $check = imap_check($imap_stream); 20 var_dump(imap_body($imap_stream, 1)); 23 var_dump(imap_body($imap_stream, 1, FT_UID)); 25 imap_close($imap_stream);
|
H A D | imap_mail_move_basic.phpt | 16 $imap_stream = setup_test_mailbox("movebasic", 1); 18 $check = imap_check($imap_stream); 21 var_dump(imap_mail_move($imap_stream, '1', 'INBOX.' . IMAP_MAILBOX_PHPT_PREFIX . 'movebasic')); 23 imap_close($imap_stream);
|
H A D | imap_mail_copy_basic.phpt | 16 $imap_stream = setup_test_mailbox('copybasic', 1); 18 $check = imap_check($imap_stream); 21 var_dump(imap_mail_copy($imap_stream, '1', 'INBOX.' . IMAP_MAILBOX_PHPT_PREFIX . 'copybasic')); 23 imap_close($imap_stream);
|
H A D | imap_createmailbox_basic.phpt | 13 $imap_stream = setup_test_mailbox("imapcreatemailboxbasic", 0); 20 if (imap_createmailbox($imap_stream, $newbox)) { 23 populate_mailbox($imap_stream, $newbox, 2); 25 $status = imap_status($imap_stream, $newbox, SA_ALL); 38 if (imap_deletemailbox($imap_stream, $newbox)) { 48 imap_close($imap_stream);
|
H A D | imap_bodystruct_basic.phpt | 13 $imap_stream = setup_test_mailbox("imapbodystructbasic", 1, $mailbox, "multipart"); 17 $m = imap_bodystruct($imap_stream, 1, "1"); 45 var_dump(imap_bodystruct($imap_stream, 1, "4")); 47 imap_close($imap_stream);
|
H A D | imap_close_variation4.phpt | 43 $imap_stream = imap_open($mailbox, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD); 44 $num_msg = imap_num_msg($imap_stream); 51 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | imap_fetch_overview_variation6.phpt | 34 * @param resource $imap_stream 37 function create_multipart_message($imap_stream, $mailbox) { 75 if (imap_append($imap_stream, $mailbox, $msg) === false) {
|
/PHP-8.0/ext/imap/tests/setup/ |
H A D | clean.inc | 6 $imap_stream = imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD); 9 $check = imap_check($imap_stream); 11 imap_delete($imap_stream, $i); 15 $mailboxes = imap_getmailboxes($imap_stream, IMAP_SERVER, '*'); 27 imap_deletemailbox($imap_stream, $value->name); 32 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | imap_include.inc | 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 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 [all …]
|
/PHP-8.0/ext/standard/tests/mail/ |
H A D | mail_include.inc | 24 $imap_stream = imap_open($default_mailbox, $username, $password); 26 if ($imap_stream === false) { 41 if (imap_reopen($imap_stream, $new_mailbox) === false) { 46 return $imap_stream; 52 * @param resource $imap_stream 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"){ [all …]
|
H A D | bug80706.phpt | 19 $imap_stream = imap_open($default_mailbox, $username, $password); 20 if ($imap_stream === false) { 30 $num_messages = imap_check($imap_stream)->Nmsgs; 32 $info = imap_headerinfo($imap_stream, $i); 34 $header = imap_fetchheader($imap_stream, $i); 37 imap_delete($imap_stream, $i); 45 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | bug72964.phpt | 19 $imap_stream = imap_open($default_mailbox, $username, $password); 20 if ($imap_stream === false) { 30 $num_messages = imap_check($imap_stream)->Nmsgs; 32 $info = imap_headerinfo($imap_stream, $i); 34 imap_delete($imap_stream, $i); 42 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_basic_alt1-win32.phpt | 41 $imap_stream = imap_open($default_mailbox, $username, $password); 42 if ($imap_stream === false) { 54 $current_msg_count = imap_check($imap_stream)->Nmsgs; 59 $hdr = imap_headerinfo($imap_stream, $i); 64 imap_delete($imap_stream, $i); 79 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_basic_alt2-win32.phpt | 38 $imap_stream = imap_open($default_mailbox, $username, $password); 39 if ($imap_stream === false) { 51 $current_msg_count = imap_check($imap_stream)->Nmsgs; 56 $hdr = imap_headerinfo($imap_stream, $i); 61 imap_delete($imap_stream, $i); 76 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_basic_alt3-win32.phpt | 38 $imap_stream = imap_open($default_mailbox, $username, $password); 39 if ($imap_stream === false) { 51 $current_msg_count = imap_check($imap_stream)->Nmsgs; 56 $hdr = imap_headerinfo($imap_stream, $i); 61 imap_delete($imap_stream, $i); 76 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_basic_alt4-win32.phpt | 39 $imap_stream = imap_open($default_mailbox, $username, $password); 40 if ($imap_stream === false) { 52 $current_msg_count = imap_check($imap_stream)->Nmsgs; 57 $hdr = imap_headerinfo($imap_stream, $i); 62 imap_delete($imap_stream, $i); 77 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_variation_alt3-win32.phpt | 39 $imap_stream = imap_open($default_mailbox, $username, $password); 40 if ($imap_stream === false) { 52 $current_msg_count = imap_check($imap_stream)->Nmsgs; 57 $hdr = imap_headerinfo($imap_stream, $i); 62 imap_delete($imap_stream, $i); 77 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_variation_alt1-win32.phpt | 40 $imap_stream = imap_open($default_mailbox, $username, $password); 41 if ($imap_stream === false) { 53 $current_msg_count = imap_check($imap_stream)->Nmsgs; 58 $hdr = imap_headerinfo($imap_stream, $i); 63 imap_delete($imap_stream, $i); 78 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | mail_variation_alt2-win32.phpt | 40 $imap_stream = imap_open($default_mailbox, $username, $password); 41 if ($imap_stream === false) { 53 $current_msg_count = imap_check($imap_stream)->Nmsgs; 58 $hdr = imap_headerinfo($imap_stream, $i); 63 imap_delete($imap_stream, $i); 78 imap_close($imap_stream, CL_EXPUNGE);
|
H A D | bug80751.phpt | 19 $imap_stream = imap_open($default_mailbox, $username, $password); 20 if ($imap_stream === false) { 30 $num_messages = imap_check($imap_stream)->Nmsgs; 32 $info = imap_headerinfo($imap_stream, $i); 34 $header = imap_fetchheader($imap_stream, $i); 43 imap_delete($imap_stream, $i); 51 imap_close($imap_stream, CL_EXPUNGE);
|
/PHP-8.0/ext/imap/ |
H A D | php_imap.c | 734 MAILSTREAM *imap_stream; in PHP_FUNCTION() local 835 if (imap_stream == NIL) { in PHP_FUNCTION() 843 imap_le_struct->imap_stream = imap_stream; in PHP_FUNCTION() 902 imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION() 903 if (imap_le_struct->imap_stream == NIL) { in PHP_FUNCTION() 978 RETURN_LONG(imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION() 996 RETURN_BOOL(mail_ping(imap_le_struct->imap_stream)); in PHP_FUNCTION() 1014 RETURN_LONG(imap_le_struct->imap_stream->recent); in PHP_FUNCTION() 1166 mail_expunge (imap_le_struct->imap_stream); in PHP_FUNCTION() 1192 mail_gc(imap_le_struct->imap_stream, flags); in PHP_FUNCTION() [all …]
|
H A D | php_imap.h | 89 MAILSTREAM *imap_stream; member
|