Lines Matching refs:imap_stream
9 /* Prototype : bool imap_clearflag_full ( resource $imap_stream , string $sequence , string $fl…
19 $imap_stream = setup_test_mailbox("", 10);
20 if (!is_resource($imap_stream)) {
24 $check = imap_check($imap_stream);
28 var_dump(imap_setflag_full($imap_stream, "1,3", "\\Seen \\Answered"));
29 var_dump(imap_setflag_full($imap_stream, "2,4", "\\Answered"));
30 var_dump(imap_setflag_full($imap_stream, "5,7", "\\Flagged \\Deleted"));
31 var_dump(imap_setflag_full($imap_stream, "6,8", "\\Deleted"));
32 var_dump(imap_setflag_full($imap_stream, "9,10", "\\Draft \\Flagged"));
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"));
39 var_dump(imap_clearflag_full($imap_stream, "1,4", "\\Answered"));
40 var_dump(imap_clearflag_full($imap_stream, "5,6,7,8", "\\Deleted"));
41 var_dump(imap_clearflag_full($imap_stream, "9", "\\Flagged"));
43 var_dump(imap_search($imap_stream, "SEEN"));
44 var_dump(imap_search($imap_stream, "ANSWERED"));
45 var_dump(imap_search($imap_stream, "FLAGGED"));
46 var_dump(imap_search($imap_stream, "DELETED"));
48 imap_close($imap_stream);