Lines Matching refs:imap_stream

603 	if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) {	\
616 mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags);
1170 MAILSTREAM *imap_stream; in php_imap_do_open() local
1258 imap_stream = mail_open(NIL, mailbox, flags); in php_imap_do_open()
1260 if (imap_stream == NIL) { in php_imap_do_open()
1268 imap_le_struct->imap_stream = imap_stream; in php_imap_do_open()
1319 imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, mailbox, flags); in PHP_FUNCTION()
1320 if (imap_le_struct->imap_stream == NIL) { in PHP_FUNCTION()
1369 …if (mail_append_full(imap_le_struct->imap_stream, folder, (flags ? flags : NIL), (internal_date ? … in PHP_FUNCTION()
1390 RETURN_LONG(imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1407 RETURN_BOOL(mail_ping(imap_le_struct->imap_stream)); in PHP_FUNCTION()
1424 RETURN_LONG(imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
1449 if (!imap_getquota(imap_le_struct->imap_stream, qroot)) { in PHP_FUNCTION()
1477 if (!imap_getquotaroot(imap_le_struct->imap_stream, mbox)) { in PHP_FUNCTION()
1506 RETURN_BOOL(imap_setquota(imap_le_struct->imap_stream, qroot, &limits)); in PHP_FUNCTION()
1525 RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream, mailbox, id, rights)); in PHP_FUNCTION()
1551 if (!imap_getacl(imap_le_struct->imap_stream, mailbox)) { in PHP_FUNCTION()
1575 mail_expunge (imap_le_struct->imap_stream); in PHP_FUNCTION()
1600 mail_gc(imap_le_struct->imap_stream, flags); in PHP_FUNCTION()
1664 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
1665 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1666 mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
1677 mail_fetchfrom(tmp+23, imap_le_struct->imap_stream, msgno, (long)20); in PHP_FUNCTION()
1682 strlcat(tmp, imap_le_struct->imap_stream->user_flags[find_rightmost_bit (&i)], sizeof(tmp)); in PHP_FUNCTION()
1687 mail_fetchsubject(t = tmp + strlen(tmp), imap_le_struct->imap_stream, msgno, (long)25); in PHP_FUNCTION()
1720 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1724 if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) { in PHP_FUNCTION()
1729 …body = mail_fetchtext_full (imap_le_struct->imap_stream, msgno, &body_len, (argc == 3 ? flags : NI… in PHP_FUNCTION()
1754 if (mail_copy_full(imap_le_struct->imap_stream, seq, folder, (argc == 4 ? options : NIL)) == T) { in PHP_FUNCTION()
1779 …if (mail_copy_full(imap_le_struct->imap_stream, seq, folder, (argc == 4 ? (options | CP_MOVE) : CP… in PHP_FUNCTION()
1802 if (mail_create(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
1825 if (mail_rename(imap_le_struct->imap_stream, old_mailbox, new_mailbox) == T) { in PHP_FUNCTION()
1848 if (mail_delete(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
1876 mail_list(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
1915 mail_list(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
1961 mail_scan(imap_le_struct->imap_stream, ref, pat, content); in PHP_FUNCTION()
1992 if (mail_ping (imap_le_struct->imap_stream) == NIL) { in PHP_FUNCTION()
1996 if (imap_le_struct->imap_stream && imap_le_struct->imap_stream->mailbox) { in PHP_FUNCTION()
2000 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name, 1); in PHP_FUNCTION()
2001 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox, 1); in PHP_FUNCTION()
2002 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
2003 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
2027 …mail_setflag_full(imap_le_struct->imap_stream, Z_STRVAL_PP(sequence), "\\DELETED", (argc == 3 ? fl… in PHP_FUNCTION()
2049 …mail_clearflag_full(imap_le_struct->imap_stream, Z_STRVAL_PP(sequence), "\\DELETED", (argc == 3 ? … in PHP_FUNCTION()
2092 if (mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL)) { in PHP_FUNCTION()
2093 cache = mail_elt(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2098 en = mail_fetchenvelope(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2126 mail_fetchfrom(fulladdress, imap_le_struct->imap_stream, msgno, fromlength); in PHP_FUNCTION()
2131 mail_fetchsubject(fulladdress, imap_le_struct->imap_stream, msgno, subjectlength); in PHP_FUNCTION()
2183 mail_lsub(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
2221 mail_lsub(imap_le_struct->imap_stream, ref, pat); in PHP_FUNCTION()
2265 if (mail_subscribe(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
2288 if (mail_unsubscribe(imap_le_struct->imap_stream, folder) == T) { in PHP_FUNCTION()
2327 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2333 mail_fetchstructure_full(imap_le_struct->imap_stream, msgno, &body , (argc == 3 ? flags : NIL)); in PHP_FUNCTION()
2372 …body = mail_fetchbody_full(imap_le_struct->imap_stream, msgno, sec, &len, (argc == 4 ? flags : NIL… in PHP_FUNCTION()
2412 body = mail_fetch_mime(imap_le_struct->imap_stream, msgno, sec, &len, (argc == 4 ? flags : NIL)); in PHP_FUNCTION()
2469 mail_fetchbody_full(imap_ptr->imap_stream, msgno, section, NULL, flags); in PHP_FUNCTION()
2595 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
2596 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2597 mail_fetchstructure (imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
2610 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
2614 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name, 1); in PHP_FUNCTION()
2615 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox, 1); in PHP_FUNCTION()
2616 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
3085 mail_setflag_full(imap_le_struct->imap_stream, sequence, flag, (flags ? flags : NIL)); in PHP_FUNCTION()
3107 mail_clearflag_full(imap_le_struct->imap_stream, sequence, flag, (argc == 4 ? flags : NIL)); in PHP_FUNCTION()
3156 …slst = mail_sort(imap_le_struct->imap_stream, (argc == 6 ? charset : NIL), spg, mypgm, (argc >= 4 … in PHP_FUNCTION()
3196 msgindex = mail_msgno(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
3203 …RETVAL_STRING(mail_fetchheader_full(imap_le_struct->imap_stream, msgno, NIL, NIL, (argc == 3 ? fla… in PHP_FUNCTION()
3223 if ((msgindex < 1) || ((unsigned) msgindex > imap_le_struct->imap_stream->nmsgs)) { in PHP_FUNCTION()
3228 RETURN_LONG(mail_uid(imap_le_struct->imap_stream, msgno)); in PHP_FUNCTION()
3246 RETURN_LONG(mail_msgno(imap_le_struct->imap_stream, msgno)); in PHP_FUNCTION()
3268 if (mail_status(imap_le_struct->imap_stream, mbx, flags)) { in PHP_FUNCTION()
3310 if (!msg || msg < 1 || (unsigned) msg > imap_le_struct->imap_stream->nmsgs) { in PHP_FUNCTION()
3317 body=mail_body(imap_le_struct->imap_stream, msg, section); in PHP_FUNCTION()
3435 ? mail_uid_sequence(imap_le_struct->imap_stream, sequence) in PHP_FUNCTION()
3436 : mail_sequence(imap_le_struct->imap_stream, sequence); in PHP_FUNCTION()
3443 for (i = 1; i <= imap_le_struct->imap_stream->nmsgs; i++) { in PHP_FUNCTION()
3444 if (((elt = mail_elt (imap_le_struct->imap_stream, i))->sequence) && in PHP_FUNCTION()
3445 (env = mail_fetch_structure (imap_le_struct->imap_stream, i, NIL, NIL))) { in PHP_FUNCTION()
3478 add_property_long(myoverview, "uid", mail_uid(imap_le_struct->imap_stream, i)); in PHP_FUNCTION()
4132 mail_search_full(imap_le_struct->imap_stream, (argc == 4 ? charset : NIL), pgm, flags); in PHP_FUNCTION()
4749 top = mail_thread(imap_le_struct->imap_stream, "REFERENCES", NIL, pgm, flags); in PHP_FUNCTION()