Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3061 invoked by uid 1010); 15 Aug 2004 17:20:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3024 invoked from network); 15 Aug 2004 17:20:31 -0000 Received: from unknown (HELO mail.troja.net) (80.190.230.99) by pb1.pair.com with SMTP; 15 Aug 2004 17:20:31 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id DEE65775C; Sun, 15 Aug 2004 19:20:29 +0200 (CEST) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28908-01; Sun, 15 Aug 2004 19:20:27 +0200 (CEST) Received: from vega.php.net (p50847427.dip.t-dialin.net [80.132.116.39]) (using SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 2F5CB774D; Sun, 15 Aug 2004 19:20:27 +0200 (CEST) Message-ID: <6.1.2.0.0.20040815191653.0407f788@127.0.0.1> X-Sender: thetaphi.troja.net@bla X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Sun, 15 Aug 2004 19:20:38 +0200 To: Crispin Olson , Uwe Schindler Cc: internals@lists.php.net In-Reply-To: <411F9463.8090600@rcn.com> References: <6.1.2.0.0.20040815173220.03a33548@bla> <411F9463.8090600@rcn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at troja.net X-Spam-Status: Yes, hits=5.4 tagged_above=0.0 required=4.0 tests=AWL, BAYES_10, RCVD_IN_DYNABLOCK, RCVD_IN_NJABL, RCVD_IN_NJABL_DIALUP, RCVD_IN_SORBS X-Spam-Level: ***** X-Spam-Flag: YES Subject: Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment From: thetaphi@php.net (Uwe Schindler) This would be also interesting: For decoding base64 binarys you could use the string.base64 stream filter then (PHP5)! :) Uwe At 18:50 15.08.2004, Crispin Olson wrote: >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 > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php > ----- Uwe Schindler thetaphi@php.net - http://www.php.net NSAPI SAPI developer Erlangen, Germany