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) { \
592 MAILSTREAM *imap_stream; in PHP_FUNCTION() local
689 imap_stream = mail_open(NIL, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
692 if (imap_stream == NIL) { in PHP_FUNCTION()
700 imap_object_from_zend_object(Z_OBJ_P(return_value))->imap_stream = imap_stream; in PHP_FUNCTION()
755 imap_conn_struct->imap_stream = mail_open(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
756 if (imap_conn_struct->imap_stream == NIL) { in PHP_FUNCTION()
777 if (imap_conn_struct->imap_stream == NULL) { in PHP_FUNCTION()
824 …if (mail_append_full(imap_conn_struct->imap_stream, ZSTR_VAL(folder), (flags ? ZSTR_VAL(flags) : N… in PHP_FUNCTION()
844 RETURN_LONG(imap_conn_struct->imap_stream->nmsgs); in PHP_FUNCTION()
860 RETURN_BOOL(mail_ping(imap_conn_struct->imap_stream)); in PHP_FUNCTION()
876 RETURN_LONG(imap_conn_struct->imap_stream->recent); in PHP_FUNCTION()
899 if (!imap_getquota(imap_conn_struct->imap_stream, ZSTR_VAL(qroot))) { in PHP_FUNCTION()
925 if (!imap_getquotaroot(imap_conn_struct->imap_stream, ZSTR_VAL(mbox))) { in PHP_FUNCTION()
952 RETURN_BOOL(imap_setquota(imap_conn_struct->imap_stream, ZSTR_VAL(qroot), &limits)); in PHP_FUNCTION()
969 …RETURN_BOOL(imap_setacl(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox), ZSTR_VAL(id), ZSTR_VAL(r… in PHP_FUNCTION()
993 if (!imap_getacl(imap_conn_struct->imap_stream, ZSTR_VAL(mailbox))) { in PHP_FUNCTION()
1016 mail_expunge (imap_conn_struct->imap_stream); in PHP_FUNCTION()
1040 mail_gc(imap_conn_struct->imap_stream, flags); in PHP_FUNCTION()
1077 mail_close_full(imap_conn_struct->imap_stream, imap_conn_struct->flags); in PHP_FUNCTION()
1078 imap_conn_struct->imap_stream = NULL; in PHP_FUNCTION()
1105 for (msgno = 1; msgno <= imap_conn_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
1106 MESSAGECACHE * cache = mail_elt (imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1107 mail_fetchstructure(imap_conn_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
1118 mail_fetchfrom(tmp+23, imap_conn_struct->imap_stream, msgno, (long)20); in PHP_FUNCTION()
1123 strlcat(tmp, imap_conn_struct->imap_stream->user_flags[find_rightmost_bit (&i)], sizeof(tmp)); in PHP_FUNCTION()
1128 mail_fetchsubject(t = tmp + strlen(tmp), imap_conn_struct->imap_stream, msgno, (long)25); in PHP_FUNCTION()
1159 body = mail_fetchtext_full (imap_conn_struct->imap_stream, msgno, &body_len, flags); in PHP_FUNCTION()
1188 if (mail_copy_full(imap_conn_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1219 if (mail_copy_full(imap_conn_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1240 if (mail_create(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1261 …if (mail_rename(imap_conn_struct->imap_stream, ZSTR_VAL(old_mailbox), ZSTR_VAL(new_mailbox)) == T)… in PHP_FUNCTION()
1282 if (mail_delete(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1308 mail_list(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1371 mail_list(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1405 mail_scan(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat), ZSTR_VAL(content)); in PHP_FUNCTION()
1422 …tic void php_imap_populate_mailbox_properties_object(zval *z_object, const MAILSTREAM *imap_stream) in php_imap_populate_mailbox_properties_object() argument
1434 imap_stream->dtb->name in php_imap_populate_mailbox_properties_object()
1439 imap_stream->mailbox in php_imap_populate_mailbox_properties_object()
1444 imap_stream->nmsgs in php_imap_populate_mailbox_properties_object()
1449 imap_stream->recent in php_imap_populate_mailbox_properties_object()
1465 if (mail_ping (imap_conn_struct->imap_stream) == NIL) { in PHP_FUNCTION()
1469 if (imap_conn_struct->imap_stream->mailbox) { in PHP_FUNCTION()
1471 php_imap_populate_mailbox_properties_object(return_value, imap_conn_struct->imap_stream); in PHP_FUNCTION()
1499 mail_setflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1522 mail_clearflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1557 if (mail_fetchstructure(imap_conn_struct->imap_stream, msgno, NIL)) { in PHP_FUNCTION()
1558 cache = mail_elt(imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1563 en = mail_fetchenvelope(imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
1633 mail_fetchfrom(fulladdress, imap_conn_struct->imap_stream, msgno, fromlength); in PHP_FUNCTION()
1642 mail_fetchsubject(fulladdress, imap_conn_struct->imap_stream, msgno, subjectlength); in PHP_FUNCTION()
1695 mail_lsub(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1732 mail_lsub(imap_conn_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1766 if (mail_subscribe(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1787 if (mail_unsubscribe(imap_conn_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1820 mail_fetchstructure_full(imap_conn_struct->imap_stream, msgno, &body , flags); in PHP_FUNCTION()
1856 body = mail_fetchbody_full(imap_conn_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
1893 body = mail_fetch_mime(imap_conn_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
1953 …mail_fetchbody_full(imap_conn_struct->imap_stream, msgno, section?ZSTR_VAL(section):"", NULL, flag… in PHP_FUNCTION()
2070 for (msgno = 1; msgno <= imap_conn_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
2071 MESSAGECACHE * cache = mail_elt (imap_conn_struct->imap_stream, msgno); in PHP_FUNCTION()
2072 mail_fetchstructure (imap_conn_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
2099 php_imap_populate_mailbox_properties_object(return_value, imap_conn_struct->imap_stream); in PHP_FUNCTION()
2584 …mail_setflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), (flags ? flag… in PHP_FUNCTION()
2608 mail_clearflag_full(imap_conn_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), flags); in PHP_FUNCTION()
2659 …slst = mail_sort(imap_conn_struct->imap_stream, (charset ? ZSTR_VAL(charset) : NIL), spg, mypgm, f… in PHP_FUNCTION()
2698 RETVAL_STRING(mail_fetchheader_full(imap_conn_struct->imap_stream, msgno, NIL, NIL, flags)); in PHP_FUNCTION()
2717 RETURN_LONG(mail_uid(imap_conn_struct->imap_stream, msgno)); in PHP_FUNCTION()
2740 RETURN_LONG(mail_msgno(imap_conn_struct->imap_stream, msg_uid)); in PHP_FUNCTION()
2763 if (mail_status(imap_conn_struct->imap_stream, ZSTR_VAL(mbx), flags)) { in PHP_FUNCTION()
3024 …const BODY *body = mail_body(imap_conn_struct->imap_stream, msgno, (unsigned char*)ZSTR_VAL(sectio… in PHP_FUNCTION()
3074 ? mail_uid_sequence(imap_conn_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)) in PHP_FUNCTION()
3075 : mail_sequence(imap_conn_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)); in PHP_FUNCTION()
3082 for (unsigned long i = 1; i <= imap_conn_struct->imap_stream->nmsgs; i++) { in PHP_FUNCTION()
3086 elt = mail_elt(imap_conn_struct->imap_stream, i); in PHP_FUNCTION()
3091 env = mail_fetch_structure(imap_conn_struct->imap_stream, i, NIL, NIL); in PHP_FUNCTION()
3144 mail_uid(imap_conn_struct->imap_stream, i) in PHP_FUNCTION()
3919 mail_search_full(imap_conn_struct->imap_stream, (charset ? ZSTR_VAL(charset) : NIL), pgm, flags); in PHP_FUNCTION()
4463 top = mail_thread(imap_conn_struct->imap_stream, "REFERENCES", NIL, pgm, flags); in PHP_FUNCTION()