Home
last modified time | relevance | path

Searched refs:imap_stream (Results 1 – 23 of 23) sorted by relevance

/PHP-8.2/ext/imap/tests/
H A Dimap_clearflag_full_basic.phpt16 $imap_stream = setup_test_mailbox("imapclearflagfullbasic", 10);
18 $check = imap_check($imap_stream);
28 var_dump(imap_search($imap_stream, "SEEN"));
29 var_dump(imap_search($imap_stream, "ANSWERED"));
30 var_dump(imap_search($imap_stream, "FLAGGED"));
31 var_dump(imap_search($imap_stream, "DELETED"));
37 var_dump(imap_search($imap_stream, "SEEN"));
38 var_dump(imap_search($imap_stream, "ANSWERED"));
39 var_dump(imap_search($imap_stream, "FLAGGED"));
40 var_dump(imap_search($imap_stream, "DELETED"));
[all …]
H A Dimap_append_basic.phpt16 $imap_stream = setup_test_mailbox("imapappendbaisc", 0);
18 $mb_details = imap_mailboxmsginfo($imap_stream);
20 var_dump(imap_append($imap_stream, $mb_details->Mailbox
28 var_dump(imap_append($imap_stream, $mb_details->Mailbox
36 $check = imap_check($imap_stream);
40 var_dump(imap_headers($imap_stream));
42 imap_close($imap_stream);
H A Dimap_body_basic.phpt16 $imap_stream = setup_test_mailbox("imapbodybasic", 1);
18 $check = imap_check($imap_stream);
22 var_dump(imap_body($imap_stream, 1));
25 var_dump(imap_body($imap_stream, 1, FT_UID));
27 imap_close($imap_stream);
H A Dimap_mail_copy_basic.phpt18 $imap_stream = setup_test_mailbox('copybasic', 1);
20 $check = imap_check($imap_stream);
23 var_dump(imap_mail_copy($imap_stream, '1', 'INBOX.' . IMAP_MAILBOX_PHPT_PREFIX . 'copybasic'));
25 imap_close($imap_stream);
H A Dimap_mail_move_basic.phpt18 $imap_stream = setup_test_mailbox("movebasic", 1);
20 $check = imap_check($imap_stream);
23 var_dump(imap_mail_move($imap_stream, '1', 'INBOX.' . IMAP_MAILBOX_PHPT_PREFIX . 'movebasic'));
25 imap_close($imap_stream);
H A Dimap_createmailbox_basic.phpt15 $imap_stream = setup_test_mailbox("imapcreatemailboxbasic", 0);
22 if (imap_createmailbox($imap_stream, $newbox)) {
25 populate_mailbox($imap_stream, $newbox, 2);
27 $status = imap_status($imap_stream, $newbox, SA_ALL);
40 if (imap_deletemailbox($imap_stream, $newbox)) {
50 imap_close($imap_stream);
H A Dimap_bodystruct_basic.phpt15 $imap_stream = setup_test_mailbox("imapbodystructbasic", 1, $mailbox, "multipart");
19 $m = imap_bodystruct($imap_stream, 1, "1");
47 var_dump(imap_bodystruct($imap_stream, 1, "4"));
49 imap_close($imap_stream);
H A Dimap_fetch_overview_variation6.phpt36 * @param resource $imap_stream
39 function create_multipart_message($imap_stream, $mailbox) {
77 if (imap_append($imap_stream, $mailbox, $msg) === false) {
H A Dimap_close_variation4.phpt45 $imap_stream = imap_open($mailbox, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD);
46 $num_msg = imap_num_msg($imap_stream);
53 imap_close($imap_stream, CL_EXPUNGE);
/PHP-8.2/ext/imap/tests/setup/
H A Dclean.inc6 $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 Dimap_include.inc78 …$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.2/ext/standard/tests/mail/
H A Dmail_include.inc24 $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 Dbug80706.phpt23 $imap_stream = imap_open($default_mailbox, $username, $password);
24 if ($imap_stream === false) {
34 $num_messages = imap_check($imap_stream)->Nmsgs;
36 $info = imap_headerinfo($imap_stream, $i);
38 $header = imap_fetchheader($imap_stream, $i);
41 imap_delete($imap_stream, $i);
49 imap_close($imap_stream, CL_EXPUNGE);
H A Dbug72964.phpt23 $imap_stream = imap_open($default_mailbox, $username, $password);
24 if ($imap_stream === false) {
34 $num_messages = imap_check($imap_stream)->Nmsgs;
36 $info = imap_headerinfo($imap_stream, $i);
38 imap_delete($imap_stream, $i);
46 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt1-win32.phpt45 $imap_stream = imap_open($default_mailbox, $username, $password);
46 if ($imap_stream === false) {
58 $current_msg_count = imap_check($imap_stream)->Nmsgs;
63 $hdr = imap_headerinfo($imap_stream, $i);
68 imap_delete($imap_stream, $i);
83 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt2-win32.phpt42 $imap_stream = imap_open($default_mailbox, $username, $password);
43 if ($imap_stream === false) {
55 $current_msg_count = imap_check($imap_stream)->Nmsgs;
60 $hdr = imap_headerinfo($imap_stream, $i);
65 imap_delete($imap_stream, $i);
80 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt3-win32.phpt42 $imap_stream = imap_open($default_mailbox, $username, $password);
43 if ($imap_stream === false) {
55 $current_msg_count = imap_check($imap_stream)->Nmsgs;
60 $hdr = imap_headerinfo($imap_stream, $i);
65 imap_delete($imap_stream, $i);
80 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt4-win32.phpt43 $imap_stream = imap_open($default_mailbox, $username, $password);
44 if ($imap_stream === false) {
56 $current_msg_count = imap_check($imap_stream)->Nmsgs;
61 $hdr = imap_headerinfo($imap_stream, $i);
66 imap_delete($imap_stream, $i);
81 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt3-win32.phpt43 $imap_stream = imap_open($default_mailbox, $username, $password);
44 if ($imap_stream === false) {
56 $current_msg_count = imap_check($imap_stream)->Nmsgs;
61 $hdr = imap_headerinfo($imap_stream, $i);
66 imap_delete($imap_stream, $i);
81 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt1-win32.phpt44 $imap_stream = imap_open($default_mailbox, $username, $password);
45 if ($imap_stream === false) {
57 $current_msg_count = imap_check($imap_stream)->Nmsgs;
62 $hdr = imap_headerinfo($imap_stream, $i);
67 imap_delete($imap_stream, $i);
82 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt2-win32.phpt44 $imap_stream = imap_open($default_mailbox, $username, $password);
45 if ($imap_stream === false) {
57 $current_msg_count = imap_check($imap_stream)->Nmsgs;
62 $hdr = imap_headerinfo($imap_stream, $i);
67 imap_delete($imap_stream, $i);
82 imap_close($imap_stream, CL_EXPUNGE);
H A Dbug80751.phpt23 $imap_stream = imap_open($default_mailbox, $username, $password);
24 if ($imap_stream === false) {
34 $num_messages = imap_check($imap_stream)->Nmsgs;
36 $info = imap_headerinfo($imap_stream, $i);
38 $header = imap_fetchheader($imap_stream, $i);
47 imap_delete($imap_stream, $i);
55 imap_close($imap_stream, CL_EXPUNGE);
/PHP-8.2/ext/imap/
H A Dphp_imap.c156 MAILSTREAM *imap_stream; member
172 obj->imap_stream = NULL; in imap_object_create()
189 if (obj->imap_stream) { in imap_object_destroy()
210 if (imap_conn_struct->imap_stream == NULL) { \
611 MAILSTREAM *imap_stream; in PHP_FUNCTION() local
711 if (imap_stream == NIL) { in PHP_FUNCTION()
719 imap_object_from_zend_object(Z_OBJ_P(return_value))->imap_stream = imap_stream; in PHP_FUNCTION()
774 imap_conn_struct->imap_stream = mail_open(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
775 if (imap_conn_struct->imap_stream == NIL) { in PHP_FUNCTION()
1097 imap_conn_struct->imap_stream = NULL; in PHP_FUNCTION()
[all …]

Completed in 57 milliseconds