Home
last modified time | relevance | path

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

/PHP-8.0/ext/imap/tests/
H A Dimap_clearflag_full_basic.phpt14 $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 Dimap_append_basic.phpt14 $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 Dimap_body_basic.phpt14 $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 Dimap_mail_move_basic.phpt16 $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 Dimap_mail_copy_basic.phpt16 $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 Dimap_createmailbox_basic.phpt13 $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 Dimap_bodystruct_basic.phpt13 $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 Dimap_close_variation4.phpt43 $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 Dimap_fetch_overview_variation6.phpt34 * @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 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.0/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.phpt19 $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 Dbug72964.phpt19 $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 Dmail_basic_alt1-win32.phpt41 $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 Dmail_basic_alt2-win32.phpt38 $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 Dmail_basic_alt3-win32.phpt38 $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 Dmail_basic_alt4-win32.phpt39 $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 Dmail_variation_alt3-win32.phpt39 $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 Dmail_variation_alt1-win32.phpt40 $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 Dmail_variation_alt2-win32.phpt40 $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 Dbug80751.phpt19 $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 Dphp_imap.c734 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 Dphp_imap.h89 MAILSTREAM *imap_stream; member

Completed in 55 milliseconds