Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23289 invoked by uid 1010); 15 Aug 2004 16:51:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23157 invoked from network); 15 Aug 2004 16:51:02 -0000 Received: from unknown (HELO smtp03.mrf.mail.rcn.net) (207.172.4.62) by pb1.pair.com with SMTP; 15 Aug 2004 16:51:02 -0000 Received: from 146-115-58-203.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com ([146.115.58.203] helo=[192.168.10.3]) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.35 #7) id 1BwODl-0005nQ-00; Sun, 15 Aug 2004 12:51:01 -0400 Message-ID: <411F9463.8090600@rcn.com> Date: Sun, 15 Aug 2004 12:50:43 -0400 User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Uwe Schindler CC: internals@lists.php.net References: <6.1.2.0.0.20040815173220.03a33548@bla> In-Reply-To: <6.1.2.0.0.20040815173220.03a33548@bla> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment From: crispin@rcn.com (Crispin Olson) Uwe Schindler wrote: > How about the idea to make a function like "imap_getbodystream(...)" > that returns a PHP stream that can be read with fread() etc. and then > closed by fclose()?. This could be done by using Wez's PHP stream > wrappers in PHP5 (even in PHP4.3). > > Uwe Uwe, Not a bad idea, and I had thought of it too. Surely I need to be looking at the "Streams API for extension authors" though, rather than the wrapper functions if I want to create and maintain my own stream? At this point I've kept it simple, because for the most part, php_imap is a simple wrapper layer onto the UW c-client, and that is also true for this function. Crispin