Home
last modified time | relevance | path

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

/PHP-5.4/ext/imap/tests/
H A Dimap_clearflag_full_basic.phpt19 $imap_stream = setup_test_mailbox("", 10);
20 if (!is_resource($imap_stream)) {
24 $check = imap_check($imap_stream);
34 var_dump(imap_search($imap_stream, "SEEN"));
35 var_dump(imap_search($imap_stream, "ANSWERED"));
36 var_dump(imap_search($imap_stream, "FLAGGED"));
37 var_dump(imap_search($imap_stream, "DELETED"));
43 var_dump(imap_search($imap_stream, "SEEN"));
45 var_dump(imap_search($imap_stream, "FLAGGED"));
46 var_dump(imap_search($imap_stream, "DELETED"));
[all …]
H A Dclean.inc4 $imap_stream = imap_open($default_mailbox, $username, $password);
7 $check = imap_check($imap_stream);
9 imap_delete($imap_stream, $i);
12 $mailboxes = imap_getmailboxes($imap_stream, $server, '*');
19 imap_deletemailbox($imap_stream, $value->name);
24 imap_close($imap_stream, CL_EXPUNGE);
H A Dimap_body_basic.phpt9 /* Prototype : string imap_body ( resource $imap_stream , int $msg_number [, int $options ] )
19 $imap_stream = setup_test_mailbox("", 1);
20 if (!is_resource($imap_stream)) {
24 $check = imap_check($imap_stream);
28 var_dump(imap_body($imap_stream, 1));
31 var_dump(imap_body($imap_stream, 1, FT_UID));
33 imap_close($imap_stream);
H A Dimap_mail_copy_basic.phpt11 /* Prototype : bool imap_mail_copy ( resource $imap_stream , string $msglist , string $mailbox …
22 $imap_stream = setup_test_mailbox("", 1);
23 if (!is_resource($imap_stream)) {
27 $check = imap_check($imap_stream);
30 var_dump(imap_mail_copy($imap_stream, '1', 'INBOX.'.$mailbox_prefix));
32 imap_close($imap_stream);
H A Dimap_mail_move_basic.phpt11 /* Prototype : bool imap_mail_move ( resource $imap_stream , string $msglist , string $mailbox …
22 $imap_stream = setup_test_mailbox("", 1);
23 if (!is_resource($imap_stream)) {
27 $check = imap_check($imap_stream);
30 var_dump(imap_mail_move($imap_stream, '1', 'INBOX.'.$mailbox_prefix));
32 imap_close($imap_stream);
H A Dimap_append_basic.phpt9 /* Prototype : bool imap_append ( resource $imap_stream , string $mailbox , string $message [,…
19 $imap_stream = setup_test_mailbox("", 0);
20 if (!is_resource($imap_stream)) {
24 $mb_details = imap_mailboxmsginfo($imap_stream);
26 var_dump(imap_append($imap_stream, $mb_details->Mailbox
34 var_dump(imap_append($imap_stream, $mb_details->Mailbox
42 $check = imap_check($imap_stream);
46 var_dump(imap_headers($imap_stream));
48 imap_close($imap_stream);
H A Dimap_createmailbox_basic.phpt9 /* Prototype : bool imap_createmailbox ( resource $imap_stream , string $mailbox )
18 $imap_stream = imap_open($default_mailbox, $username, $password) or
26 if (imap_createmailbox($imap_stream, $newbox)) {
29 populate_mailbox($imap_stream, $newbox, 2);
31 $status = imap_status($imap_stream, $newbox, SA_ALL);
44 if (imap_deletemailbox($imap_stream, $newbox)) {
54 imap_close($imap_stream);
H A Dimap_include.inc70 $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
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
[all …]
H A Dimap_bodystruct_basic.phpt9 /* Prototype : object imap_bodystruct ( resource $imap_stream , int $msg_number , string $secti…
18 $imap_stream = setup_test_mailbox("", 1, $mailbox, "multipart");
19 if (!is_resource($imap_stream)) {
25 $m = imap_bodystruct($imap_stream, 1, "1");
54 var_dump(imap_bodystruct($imap_stream, 1, "4"));
56 imap_close($imap_stream);
H A Dimap_close_variation4.phpt43 $imap_stream = imap_open($mailbox, $username, $password);
44 $num_msg = imap_num_msg($imap_stream);
51 imap_close($imap_stream, CL_EXPUNGE);
H A Dimap_fetch_overview_variation6.phpt39 * @param resource $imap_stream
42 function create_multipart_message($imap_stream, $mailbox) {
80 if (imap_append($imap_stream, $mailbox, $msg) === false) {
H A Dimap_close_variation2.phpt20 // include file for imap_stream
94 $imap_stream = imap_open($mailbox, $username, $password);
95 $num_msg = imap_num_msg($imap_stream);
102 imap_close($imap_stream, CL_EXPUNGE);
/PHP-5.4/ext/standard/tests/mail/
H A Dmail_include.inc24 $imap_stream = imap_open($default_mailbox, $username, $password);
26 if ($imap_stream === false) {
32 $new_mailbox = create_mailbox($imap_stream, $mailbox_suffix, $message_count, $msg_type);
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
[all …]
H A Dmail_basic_alt1-win32.phpt48 $imap_stream = imap_open($default_mailbox, $username, $password);
49 if ($imap_stream === false) {
61 $current_msg_count = imap_check($imap_stream)->Nmsgs;
66 $hdr = imap_headerinfo($imap_stream, $i);
71 imap_delete($imap_stream, $i);
86 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt2-win32.phpt46 $imap_stream = imap_open($default_mailbox, $username, $password);
47 if ($imap_stream === false) {
59 $current_msg_count = imap_check($imap_stream)->Nmsgs;
64 $hdr = imap_headerinfo($imap_stream, $i);
69 imap_delete($imap_stream, $i);
84 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt3-win32.phpt46 $imap_stream = imap_open($default_mailbox, $username, $password);
47 if ($imap_stream === false) {
59 $current_msg_count = imap_check($imap_stream)->Nmsgs;
64 $hdr = imap_headerinfo($imap_stream, $i);
69 imap_delete($imap_stream, $i);
84 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt3-win32.phpt46 $imap_stream = imap_open($default_mailbox, $username, $password);
47 if ($imap_stream === false) {
59 $current_msg_count = imap_check($imap_stream)->Nmsgs;
64 $hdr = imap_headerinfo($imap_stream, $i);
69 imap_delete($imap_stream, $i);
84 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_basic_alt4-win32.phpt47 $imap_stream = imap_open($default_mailbox, $username, $password);
48 if ($imap_stream === false) {
60 $current_msg_count = imap_check($imap_stream)->Nmsgs;
65 $hdr = imap_headerinfo($imap_stream, $i);
70 imap_delete($imap_stream, $i);
85 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt1-win32.phpt47 $imap_stream = imap_open($default_mailbox, $username, $password);
48 if ($imap_stream === false) {
60 $current_msg_count = imap_check($imap_stream)->Nmsgs;
65 $hdr = imap_headerinfo($imap_stream, $i);
70 imap_delete($imap_stream, $i);
85 imap_close($imap_stream, CL_EXPUNGE);
H A Dmail_variation_alt2-win32.phpt47 $imap_stream = imap_open($default_mailbox, $username, $password);
48 if ($imap_stream === false) {
60 $current_msg_count = imap_check($imap_stream)->Nmsgs;
65 $hdr = imap_headerinfo($imap_stream, $i);
70 imap_delete($imap_stream, $i);
85 imap_close($imap_stream, CL_EXPUNGE);
/PHP-5.4/ext/imap/
H A Dphp_imap.c1151 MAILSTREAM *imap_stream; in php_imap_do_open() local
1239 imap_stream = mail_open(NIL, mailbox, flags); in php_imap_do_open()
1241 if (imap_stream == NIL) { in php_imap_do_open()
1249 imap_le_struct->imap_stream = imap_stream; in php_imap_do_open()
1300 imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, mailbox, flags); in PHP_FUNCTION()
1301 if (imap_le_struct->imap_stream == NIL) { in PHP_FUNCTION()
1371 RETURN_LONG(imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1405 RETURN_LONG(imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
1556 mail_expunge (imap_le_struct->imap_stream); in PHP_FUNCTION()
1581 mail_gc(imap_le_struct->imap_stream, flags); in PHP_FUNCTION()
[all …]
H A Dphp_imap.h76 MAILSTREAM *imap_stream; member

Completed in 39 milliseconds