Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19173 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71365 invoked by uid 1010); 26 Sep 2005 15:54:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71350 invoked from network); 26 Sep 2005 15:54:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2005 15:54:45 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:4928] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CC/F0-24510-5C918334 for ; Mon, 26 Sep 2005 11:54:45 -0400 Received: from localhost ([127.0.0.1] helo=lighthammer) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1EJucw-00054w-00; Mon, 26 Sep 2005 08:10:46 -0700 Message-ID: <003901c5c2b2$9b2c8300$6c051fac@lighthammer> To: "Michael Wallner" Cc: References: <79.1A.24510.546D2334@pb1.pair.com> <91.71.24510.E9A93334@pb1.pair.com> <003501c5c064$4782bc60$5c8be5a9@ohr.berkeley.edu> <35.D0.24510.B52F7334@pb1.pair.com> <001001c5c2aa$f73a7740$6c051fac@lighthammer> Date: Mon, 26 Sep 2005 08:54:40 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PATCH] imap_savebody() From: pollita@php.net ("Sara Golemon") > 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;