Lines Matching refs:imap_stream
156 MAILSTREAM *imap_stream; member
172 obj->imap_stream = NULL; in imap_object_create()
189 if (obj->imap_stream) { in imap_object_destroy()
192 mail_close_full(obj->imap_stream, obj->flags); in imap_object_destroy()
210 if (imap_conn_struct->imap_stream == NULL) { \
225 unsigned int msg_no_from_uid = mail_msgno(imap_conn_struct->imap_stream, msgindex); \
231 if (((unsigned) msgindex) > imap_conn_struct->imap_stream->nmsgs) { \
243 if (((unsigned) msgindex) > imap_conn_struct->imap_stream->nmsgs) { \
611 MAILSTREAM *imap_stream; in PHP_FUNCTION() local
708 imap_stream = mail_open(NIL, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
711 if (imap_stream == NIL) { in PHP_FUNCTION()
719 imap_object_from_zend_object(Z_OBJ_P(return_value))->imap_stream = imap_stream; in PHP_FUNCTION()
774 imap_conn_struct->imap_stream = mail_open(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
775 if (imap_conn_struct->imap_stream == NIL) { in PHP_FUNCTION()
796 if (imap_conn_struct->imap_stream == NULL) { in PHP_FUNCTION()
843 …if (mail_append_full(imap_conn_struct->imap_stream, ZSTR_VAL(folder), (flags ? ZSTR_VAL(flags) : N… in PHP_FUNCTION()
863 RETURN_LONG(imap_conn_struct->imap_stream->nmsgs); in PHP_FUNCTION()
879 RETURN_BOOL(mail_ping(imap_conn_struct->imap_stream)); in PHP_FUNCTION()
895 RETURN_LONG(imap_conn_struct->imap_stream->recent); in PHP_FUNCTION()
918 if (!imap_getquota(imap_conn_struct->imap_stream, ZSTR_VAL(qroot))) { in PHP_FUNCTION()
944 if (!imap_getquotaroot(imap_conn_struct->imap_stream, ZSTR_VAL(mbox))) { in PHP_FUNCTION()
971 RETURN_BOOL(imap_setquota(imap_conn_struct->imap_stream, ZSTR_VAL(qroot), &limits)); in PHP_FUNCTION()
988 …RETURN_BOOL(imap_setacl(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox), ZSTR_VAL(id), ZSTR_VAL(r… in PHP_FUNCTION()
1012 if (!imap_getacl(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox))) { in PHP_FUNCTION()
1035 mail_expunge (imap_conn_struct->imap_stream); in PHP_FUNCTION()
1059 mail_gc(imap_conn_struct->imap_stream, flags); in PHP_FUNCTION()
1096 mail_close_full(imap_conn_struct->imap_stream, imap_conn_struct->flags); in PHP_FUNCTION()
1097 imap_conn_struct->imap_stream = NULL; in PHP_FUNCTION()
1124 for (msgno = 1; msgno <= imap_conn_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
1125 MESSAGECACHE * cache = mail_elt (imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1126 mail_fetchstructure(imap_conn_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
1137 mail_fetchfrom(tmp+23, imap_conn_struct->imap_stream, msgno, (long)20); in PHP_FUNCTION()
1142 strlcat(tmp, imap_conn_struct->imap_stream->user_flags[find_rightmost_bit (&i)], sizeof(tmp)); in PHP_FUNCTION()
1147 mail_fetchsubject(t = tmp + strlen(tmp), imap_conn_struct->imap_stream, msgno, (long)25); in PHP_FUNCTION()
1178 body = mail_fetchtext_full (imap_conn_struct->imap_stream, msgno, &body_len, flags); in PHP_FUNCTION()
1207 if (mail_copy_full(imap_conn_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1238 if (mail_copy_full(imap_conn_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1259 if (mail_create(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1280 …if (mail_rename(imap_conn_struct->imap_stream, ZSTR_VAL(old_mailbox), ZSTR_VAL(new_mailbox)) == T)… in PHP_FUNCTION()
1301 if (mail_delete(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1327 mail_list(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1364 mail_list(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1407 mail_scan(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat), ZSTR_VAL(content)); in PHP_FUNCTION()
1437 if (mail_ping (imap_conn_struct->imap_stream) == NIL) { in PHP_FUNCTION()
1441 if (imap_conn_struct->imap_stream && imap_conn_struct->imap_stream->mailbox) { in PHP_FUNCTION()
1445 add_property_string(return_value, "Driver", imap_conn_struct->imap_stream->dtb->name); in PHP_FUNCTION()
1446 add_property_string(return_value, "Mailbox", imap_conn_struct->imap_stream->mailbox); in PHP_FUNCTION()
1447 add_property_long(return_value, "Nmsgs", imap_conn_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1448 add_property_long(return_value, "Recent", imap_conn_struct->imap_stream->recent); in PHP_FUNCTION()
1476 mail_setflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1499 mail_clearflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1534 if (mail_fetchstructure(imap_conn_struct->imap_stream, msgno, NIL)) { in PHP_FUNCTION()
1535 cache = mail_elt(imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1540 en = mail_fetchenvelope(imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1568 mail_fetchfrom(fulladdress, imap_conn_struct->imap_stream, msgno, fromlength); in PHP_FUNCTION()
1573 mail_fetchsubject(fulladdress, imap_conn_struct->imap_stream, msgno, subjectlength); in PHP_FUNCTION()
1622 mail_lsub(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1660 mail_lsub(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1702 if (mail_subscribe(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1723 if (mail_unsubscribe(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1756 mail_fetchstructure_full(imap_conn_struct->imap_stream, msgno, &body , flags); in PHP_FUNCTION()
1792 body = mail_fetchbody_full(imap_conn_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
1829 body = mail_fetch_mime(imap_conn_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
1889 …mail_fetchbody_full(imap_conn_struct->imap_stream, msgno, section?ZSTR_VAL(section):"", NULL, flag… in PHP_FUNCTION()
2007 for (msgno = 1; msgno <= imap_conn_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
2008 MESSAGECACHE * cache = mail_elt (imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
2009 mail_fetchstructure (imap_conn_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
2022 add_property_long(return_value, "Nmsgs", imap_conn_struct->imap_stream->nmsgs); in PHP_FUNCTION()
2026 add_property_string(return_value, "Driver", imap_conn_struct->imap_stream->dtb->name); in PHP_FUNCTION()
2027 add_property_string(return_value, "Mailbox", imap_conn_struct->imap_stream->mailbox); in PHP_FUNCTION()
2028 add_property_long(return_value, "Recent", imap_conn_struct->imap_stream->recent); in PHP_FUNCTION()
2485 …mail_setflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), (flags ? flag… in PHP_FUNCTION()
2509 mail_clearflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), flags); in PHP_FUNCTION()
2560 …slst = mail_sort(imap_conn_struct->imap_stream, (charset ? ZSTR_VAL(charset) : NIL), spg, mypgm, f… in PHP_FUNCTION()
2599 RETVAL_STRING(mail_fetchheader_full(imap_conn_struct->imap_stream, msgno, NIL, NIL, flags)); in PHP_FUNCTION()
2618 RETURN_LONG(mail_uid(imap_conn_struct->imap_stream, msgno)); in PHP_FUNCTION()
2641 RETURN_LONG(mail_msgno(imap_conn_struct->imap_stream, msg_uid)); in PHP_FUNCTION()
2666 if (mail_status(imap_conn_struct->imap_stream, ZSTR_VAL(mbx), flags)) { in PHP_FUNCTION()
2708 body=mail_body(imap_conn_struct->imap_stream, msgno, (unsigned char*)ZSTR_VAL(section)); in PHP_FUNCTION()
2819 ? mail_uid_sequence(imap_conn_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)) in PHP_FUNCTION()
2820 : mail_sequence(imap_conn_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)); in PHP_FUNCTION()
2827 for (i = 1; i <= imap_conn_struct->imap_stream->nmsgs; i++) { in PHP_FUNCTION()
2828 if (((elt = mail_elt (imap_conn_struct->imap_stream, i))->sequence) && in PHP_FUNCTION()
2829 (env = mail_fetch_structure (imap_conn_struct->imap_stream, i, NIL, NIL))) { in PHP_FUNCTION()
2861 add_property_long(&myoverview, "uid", mail_uid(imap_conn_struct->imap_stream, i)); in PHP_FUNCTION()
3601 mail_search_full(imap_conn_struct->imap_stream, (argc == 4 ? ZSTR_VAL(charset) : NIL), pgm, flags); in PHP_FUNCTION()
4187 top = mail_thread(imap_conn_struct->imap_stream, "REFERENCES", NIL, pgm, flags); in PHP_FUNCTION()