Downloading attachments is fixed. Now we do not buffer the entire attachment
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 28 Jun 2003 13:36:41 +0000 (13:36 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 28 Jun 2003 13:36:41 +0000 (13:36 +0000)
commitbc78cc6ea8231400fe280d12cd402681db0729e7
tree2d15a3eaff8aa2717b01c077e857e0859c444dfe
parent325978acc59b77eca22c1f8991505f88ae649a1d
Downloading attachments is fixed. Now we do not buffer the entire attachment
before echo it to stdout. with fread we detect how long the base64 encoded
liones are so we can do base64 decoding on the fly.
The advantage of using fread instead of fgets is that the buffersize can be
used so we reduce the number of echo calls (fread doesn't stop at \n).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5137 7612ce4b-ef26-0410-bec9-ea0150e637f0
functions/imap_general.php