Well, unfortunately not. It seems that net_get_buffer() in mail.c is used as standard readfn_t which only returns NIL/T i.e. 0/1.
Okay, take two: char buf[GETS_FETCH_SIZE]; while (size > 0) { in toread = (size > GETS_FETCH_SIZE) ? GETS_FETCH_SIZE : size); if (!f(stream, toread, buf)) break; php_stream_write_stringl(IMAPG(gets_stream), buf, toread); size -= toread; } return NULL; -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php