[imp] email attachment size problem

You, Hongtao Howard hyou at Foxboro.com
Fri Apr 23 15:33:23 PDT 2004


 Andrew,

Thank you. It works now.

Howard

-----Original Message-----
From: Andrew Morgan
To: You, Hongtao Howard
Cc: imp at lists.horde.org
Sent: 04-4-22 17:34
Subject: Re: [imp] email attachment size problem



On Thu, 22 Apr 2004, You, Hongtao Howard wrote:

> Hi, I need some help on horde / imp configuration.
>
>
>
> Environment:
>
> I have a RedHat Linux 9.0 box, with Apache 2.0.40-21.9, PHP
4.2.2-17.2,
> horde 2.2.3-1, imp 3.2.1-1, turba 1.2-1, PEAR 1.3 from horde, etc.
>
>
>
> I configure php.conf under /etc/httpd/conf.d, and setup
requestbodysize
> (something like that) directive from 524288 (512K) to 16777216 (16M).
>
>
>
> I configure php.ini under /etc/, and setup the following directives:
>
> . upload_max_filesize = 16M
>
> . memory_limit = 8M

Set your memory_limit to at 3 times the size of your
upload_max_filesize.
In your case, set memory_limit to 24M.

Unfortunately, php maintains two complete copies of the attachment in
memory while it is base64 encoding the attachment, so you need a lot
more
memory than the size of the attachment itself would indicate.

	Andy


More information about the imp mailing list