Lines Matching refs:imap_stream
594 if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) { \
607 mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags);
1151 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()
1350 …if (mail_append_full(imap_le_struct->imap_stream, folder, (flags ? flags : NIL), (internal_date ? … in PHP_FUNCTION()
1371 RETURN_LONG(imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1388 RETURN_BOOL(mail_ping(imap_le_struct->imap_stream)); in PHP_FUNCTION()
1405 RETURN_LONG(imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
1430 if (!imap_getquota(imap_le_struct->imap_stream, qroot)) { in PHP_FUNCTION()
1458 if (!imap_getquotaroot(imap_le_struct->imap_stream, mbox)) { in PHP_FUNCTION()
1487 RETURN_BOOL(imap_setquota(imap_le_struct->imap_stream, qroot, &limits)); in PHP_FUNCTION()
1506 RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream, mailbox, id, rights)); in PHP_FUNCTION()
1532 if (!imap_getacl(imap_le_struct->imap_stream, mailbox)) { 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()
1645 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
1646 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1647 mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
1658 mail_fetchfrom(tmp+23, imap_le_struct->imap_stream, msgno, (long)20); in PHP_FUNCTION()
1663 strlcat(tmp, imap_le_struct->imap_stream->user_flags[find_rightmost_bit (&i)], sizeof(tmp)); in PHP_FUNCTION()
1668 mail_fetchsubject(t = tmp + strlen(tmp), imap_le_struct->imap_stream, msgno, (long)25); in PHP_FUNCTION()
1701 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1705 if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) { in PHP_FUNCTION()
1710 …body = mail_fetchtext_full (imap_le_struct->imap_stream, msgno, &body_len, (argc == 3 ? flags : NI… in PHP_FUNCTION()
1735 if (mail_copy_full(imap_le_struct->imap_stream, seq, folder, (argc == 4 ? options : NIL)) == T) { in PHP_FUNCTION()
1760 …if (mail_copy_full(imap_le_struct->imap_stream, seq, folder, (argc == 4 ? (options | CP_MOVE) : CP… in PHP_FUNCTION()
1783 if (mail_create(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
1806 if (mail_rename(imap_le_struct->imap_stream, old_mailbox, new_mailbox) == T) { in PHP_FUNCTION()
1829 if (mail_delete(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
1857 mail_list(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
1896 mail_list(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
1942 mail_scan(imap_le_struct->imap_stream, ref, pat, content); in PHP_FUNCTION()
1973 if (mail_ping (imap_le_struct->imap_stream) == NIL) { in PHP_FUNCTION()
1977 if (imap_le_struct->imap_stream && imap_le_struct->imap_stream->mailbox) { in PHP_FUNCTION()
1981 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name, 1); in PHP_FUNCTION()
1982 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox, 1); in PHP_FUNCTION()
1983 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1984 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
2008 …mail_setflag_full(imap_le_struct->imap_stream, Z_STRVAL_PP(sequence), "\\DELETED", (argc == 3 ? fl… in PHP_FUNCTION()
2030 …mail_clearflag_full(imap_le_struct->imap_stream, Z_STRVAL_PP(sequence), "\\DELETED", (argc == 3 ? … in PHP_FUNCTION()
2073 if (mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL)) { in PHP_FUNCTION()
2074 cache = mail_elt(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2079 en = mail_fetchenvelope(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2107 mail_fetchfrom(fulladdress, imap_le_struct->imap_stream, msgno, fromlength); in PHP_FUNCTION()
2112 mail_fetchsubject(fulladdress, imap_le_struct->imap_stream, msgno, subjectlength); in PHP_FUNCTION()
2164 mail_lsub(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
2202 mail_lsub(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
2246 if (mail_subscribe(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
2269 if (mail_unsubscribe(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
2308 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2314 mail_fetchstructure_full(imap_le_struct->imap_stream, msgno, &body , (argc == 3 ? flags : NIL)); in PHP_FUNCTION()
2353 …body = mail_fetchbody_full(imap_le_struct->imap_stream, msgno, sec, &len, (argc == 4 ? flags : NIL… in PHP_FUNCTION()
2393 body = mail_fetch_mime(imap_le_struct->imap_stream, msgno, sec, &len, (argc == 4 ? flags : NIL)); in PHP_FUNCTION()
2445 mail_fetchbody_full(imap_ptr->imap_stream, msgno, section, NULL, flags); in PHP_FUNCTION()
2571 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
2572 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2573 mail_fetchstructure (imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
2586 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
2590 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name, 1); in PHP_FUNCTION()
2591 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox, 1); in PHP_FUNCTION()
2592 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
3060 mail_setflag_full(imap_le_struct->imap_stream, sequence, flag, (flags ? flags : NIL)); in PHP_FUNCTION()
3082 mail_clearflag_full(imap_le_struct->imap_stream, sequence, flag, (argc == 4 ? flags : NIL)); in PHP_FUNCTION()
3131 …slst = mail_sort(imap_le_struct->imap_stream, (argc == 6 ? charset : NIL), spg, mypgm, (argc >= 4 … in PHP_FUNCTION()
3171 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
3178 …RETVAL_STRING(mail_fetchheader_full(imap_le_struct->imap_stream, msgno, NIL, NIL, (argc == 3 ? fla… in PHP_FUNCTION()
3198 if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) { in PHP_FUNCTION()
3203 RETURN_LONG(mail_uid(imap_le_struct->imap_stream, msgno)); in PHP_FUNCTION()
3221 RETURN_LONG(mail_msgno(imap_le_struct->imap_stream, msgno)); in PHP_FUNCTION()
3243 if (mail_status(imap_le_struct->imap_stream, mbx, flags)) { in PHP_FUNCTION()
3285 if (!msg || msg < 1 || (unsigned) msg > imap_le_struct->imap_stream->nmsgs) { in PHP_FUNCTION()
3292 body=mail_body(imap_le_struct->imap_stream, msg, section); in PHP_FUNCTION()
3410 ? mail_uid_sequence(imap_le_struct->imap_stream, sequence) in PHP_FUNCTION()
3411 : mail_sequence(imap_le_struct->imap_stream, sequence); in PHP_FUNCTION()
3418 for (i = 1; i <= imap_le_struct->imap_stream->nmsgs; i++) { in PHP_FUNCTION()
3419 if (((elt = mail_elt (imap_le_struct->imap_stream, i))->sequence) && in PHP_FUNCTION()
3420 (env = mail_fetch_structure (imap_le_struct->imap_stream, i, NIL, NIL))) { in PHP_FUNCTION()
3453 add_property_long(myoverview, "uid", mail_uid(imap_le_struct->imap_stream, i)); in PHP_FUNCTION()
4108 mail_search_full(imap_le_struct->imap_stream, (argc == 4 ? charset : NIL), pgm, flags); in PHP_FUNCTION()
4725 top = mail_thread(imap_le_struct->imap_stream, "REFERENCES", NIL, pgm, flags); in PHP_FUNCTION()