Lines Matching refs:imap_stream

150 	if (((unsigned) msgindex) > imap_le_struct->imap_stream->nmsgs) { \
165 unsigned int msg_no_from_uid = mail_msgno(imap_le_struct->imap_stream, msgindex); \
171 if (((unsigned) msgindex) > imap_le_struct->imap_stream->nmsgs) { \
184 mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags); in mail_close_it()
734 MAILSTREAM *imap_stream; in PHP_FUNCTION() local
832 imap_stream = mail_open(NIL, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
835 if (imap_stream == NIL) { in PHP_FUNCTION()
843 imap_le_struct->imap_stream = imap_stream; in PHP_FUNCTION()
902 imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, ZSTR_VAL(mailbox), flags); in PHP_FUNCTION()
903 if (imap_le_struct->imap_stream == NIL) { in PHP_FUNCTION()
956 …if (mail_append_full(imap_le_struct->imap_stream, ZSTR_VAL(folder), (flags ? ZSTR_VAL(flags) : NIL… in PHP_FUNCTION()
978 RETURN_LONG(imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
996 RETURN_BOOL(mail_ping(imap_le_struct->imap_stream)); in PHP_FUNCTION()
1014 RETURN_LONG(imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
1039 if (!imap_getquota(imap_le_struct->imap_stream, ZSTR_VAL(qroot))) { in PHP_FUNCTION()
1067 if (!imap_getquotaroot(imap_le_struct->imap_stream, ZSTR_VAL(mbox))) { in PHP_FUNCTION()
1096 RETURN_BOOL(imap_setquota(imap_le_struct->imap_stream, ZSTR_VAL(qroot), &limits)); in PHP_FUNCTION()
1115 …RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream, ZSTR_VAL(mailbox), ZSTR_VAL(id), ZSTR_VAL(rig… in PHP_FUNCTION()
1141 if (!imap_getacl(imap_le_struct->imap_stream, ZSTR_VAL(mailbox))) { in PHP_FUNCTION()
1166 mail_expunge (imap_le_struct->imap_stream); in PHP_FUNCTION()
1192 mail_gc(imap_le_struct->imap_stream, flags); in PHP_FUNCTION()
1259 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
1260 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1261 mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
1272 mail_fetchfrom(tmp+23, imap_le_struct->imap_stream, msgno, (long)20); in PHP_FUNCTION()
1277 strlcat(tmp, imap_le_struct->imap_stream->user_flags[find_rightmost_bit (&i)], sizeof(tmp)); in PHP_FUNCTION()
1282 mail_fetchsubject(t = tmp + strlen(tmp), imap_le_struct->imap_stream, msgno, (long)25); in PHP_FUNCTION()
1315 body = mail_fetchtext_full (imap_le_struct->imap_stream, msgno, &body_len, flags); in PHP_FUNCTION()
1346 if (mail_copy_full(imap_le_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1379 if (mail_copy_full(imap_le_struct->imap_stream, ZSTR_VAL(seq), ZSTR_VAL(folder), options) == T) { in PHP_FUNCTION()
1402 if (mail_create(imap_le_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1425 if (mail_rename(imap_le_struct->imap_stream, ZSTR_VAL(old_mailbox), ZSTR_VAL(new_mailbox)) == T) { in PHP_FUNCTION()
1448 if (mail_delete(imap_le_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1476 mail_list(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1515 mail_list(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1560 mail_scan(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat), ZSTR_VAL(content)); in PHP_FUNCTION()
1592 if (mail_ping (imap_le_struct->imap_stream) == NIL) { in PHP_FUNCTION()
1596 if (imap_le_struct->imap_stream && imap_le_struct->imap_stream->mailbox) { in PHP_FUNCTION()
1600 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name); in PHP_FUNCTION()
1601 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox); in PHP_FUNCTION()
1602 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
1603 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
1633 mail_setflag_full(imap_le_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1656 mail_clearflag_full(imap_le_struct->imap_stream, ZSTR_VAL(sequence), "\\DELETED", flags); in PHP_FUNCTION()
1693 if (mail_fetchstructure(imap_le_struct->imap_stream, msgno, NIL)) { in PHP_FUNCTION()
1694 cache = mail_elt(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1699 en = mail_fetchenvelope(imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
1727 mail_fetchfrom(fulladdress, imap_le_struct->imap_stream, msgno, fromlength); in PHP_FUNCTION()
1732 mail_fetchsubject(fulladdress, imap_le_struct->imap_stream, msgno, subjectlength); in PHP_FUNCTION()
1783 mail_lsub(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1823 mail_lsub(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat)); in PHP_FUNCTION()
1867 if (mail_subscribe(imap_le_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1890 if (mail_unsubscribe(imap_le_struct->imap_stream, ZSTR_VAL(folder)) == T) { in PHP_FUNCTION()
1925 mail_fetchstructure_full(imap_le_struct->imap_stream, msgno, &body , flags); in PHP_FUNCTION()
1963 body = mail_fetchbody_full(imap_le_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
2002 body = mail_fetch_mime(imap_le_struct->imap_stream, msgno, ZSTR_VAL(sec), &len, flags); in PHP_FUNCTION()
2063 mail_fetchbody_full(imap_le_struct->imap_stream, msgno, section?ZSTR_VAL(section):"", NULL, flags); in PHP_FUNCTION()
2183 for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { in PHP_FUNCTION()
2184 MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); in PHP_FUNCTION()
2185 mail_fetchstructure (imap_le_struct->imap_stream, msgno, NIL); in PHP_FUNCTION()
2198 add_property_long(return_value, "Nmsgs", imap_le_struct->imap_stream->nmsgs); in PHP_FUNCTION()
2202 add_property_string(return_value, "Driver", imap_le_struct->imap_stream->dtb->name); in PHP_FUNCTION()
2203 add_property_string(return_value, "Mailbox", imap_le_struct->imap_stream->mailbox); in PHP_FUNCTION()
2204 add_property_long(return_value, "Recent", imap_le_struct->imap_stream->recent); in PHP_FUNCTION()
2662 …mail_setflag_full(imap_le_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), (flags ? flags … in PHP_FUNCTION()
2688 mail_clearflag_full(imap_le_struct->imap_stream, ZSTR_VAL(sequence), ZSTR_VAL(flag), flags); in PHP_FUNCTION()
2741 …slst = mail_sort(imap_le_struct->imap_stream, (charset ? ZSTR_VAL(charset) : NIL), spg, mypgm, fla… in PHP_FUNCTION()
2782 RETVAL_STRING(mail_fetchheader_full(imap_le_struct->imap_stream, msgno, NIL, NIL, flags)); in PHP_FUNCTION()
2803 RETURN_LONG(mail_uid(imap_le_struct->imap_stream, msgno)); in PHP_FUNCTION()
2828 RETURN_LONG(mail_msgno(imap_le_struct->imap_stream, msg_uid)); in PHP_FUNCTION()
2855 if (mail_status(imap_le_struct->imap_stream, ZSTR_VAL(mbx), flags)) { in PHP_FUNCTION()
2899 body=mail_body(imap_le_struct->imap_stream, msgno, (unsigned char*)ZSTR_VAL(section)); in PHP_FUNCTION()
3012 ? mail_uid_sequence(imap_le_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)) in PHP_FUNCTION()
3013 : mail_sequence(imap_le_struct->imap_stream, (unsigned char*)ZSTR_VAL(sequence)); in PHP_FUNCTION()
3020 for (i = 1; i <= imap_le_struct->imap_stream->nmsgs; i++) { in PHP_FUNCTION()
3021 if (((elt = mail_elt (imap_le_struct->imap_stream, i))->sequence) && in PHP_FUNCTION()
3022 (env = mail_fetch_structure (imap_le_struct->imap_stream, i, NIL, NIL))) { in PHP_FUNCTION()
3054 add_property_long(&myoverview, "uid", mail_uid(imap_le_struct->imap_stream, i)); in PHP_FUNCTION()
3796 mail_search_full(imap_le_struct->imap_stream, (argc == 4 ? ZSTR_VAL(charset) : NIL), pgm, flags); in PHP_FUNCTION()
4382 top = mail_thread(imap_le_struct->imap_stream, "REFERENCES", NIL, pgm, flags); in PHP_FUNCTION()