[dev] PATCH: Whups and VFS

Auke Bruinsma air2 at dds.nl
Tue Mar 22 01:29:21 PST 2005


This is a multi-part message in MIME format.

------=_NextPart_000_00E9_01C52ECA.0290E950
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,

This patch is for whups, so it can accept e-mails and replies to
attachments. Instead of my earlier solution (which, sorry for that was not
send in as a patch) this solution can handle large e-mails, because it does
not store every e-mail as a string in memory, but as file on the disk.
To handle the eventually large attachments, I added some functions to the
VFS. Now it is possible to request the size and to request only a part of a
file. Well with this changes to VFS its also possible to support resuming
transfers (an example is on www.php.net/readfile) So I modified this a
little. To handle this large e-mails, a new class is introduced to whups
(File_Mail) so this is included as a file, and not as patch, because this
could not be patched :). Also there was a little bug in the read permissions
of the whups sql driver (well IMHO, if I am wrong please tell me). That last
bug is fixed in whups.patch (at the bottom of the patch file).

Hope you like this work. Any comment is very welcome.

Auke Bruinsma


------=_NextPart_000_00E9_01C52ECA.0290E950
Content-Disposition: attachment;
	filename="horde_patches.zip"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: horde_patches.zip
Type: application/x-zip-compressed
Size: 12869 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20050322/b361e45a/horde_patches-0001.bin

------=_NextPart_000_00E9_01C52ECA.0290E950--



More information about the dev mailing list