[Tickets #6676] Re: Large attachments

bugs at horde.org bugs at horde.org
Fri May 2 16:48:28 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6676
-----------------------------------------------------------------------
 Ticket             | 6676
 Updated By         | david.newcomb at bigsoft.co.uk
 Summary            | Large attachments
 Queue              | IMP
 Version            | HEAD
 Type               | Enhancement
 State              | Feedback
 Priority           | 1. Low
 Milestone          |
 Patch              |
 Owners             |
-----------------------------------------------------------------------


david.newcomb at bigsoft.co.uk (2008-05-02 12:48) wrote:

It is exploding at:
$Horde: imp/lib/MIME/Contents.php,v 1.153.4.45 2007/08/07 19:53:40 slusarz
Exp $
/usr/share/psa-horde/imp/lib/MIME/Contents.php 173

The error is:
[client xxx.xxx.xxx.xxx] PHP Fatal error:  Allowed memory size of 33554432
bytes exhausted (tried to allocate 9962983 bytes) in
/usr/share/psa-horde/imp/lib/MIME/Contents.php on line 173
Allowed memory size of 33554432 bytes exhausted (tried to allocate 0
bytes)

I think you (the royal you) are reading all the mime attachments into
memory.

The attachment was 9MB so given:
            $this->_bodypart[$id] = str_replace("\r\n", "\n",
$this->_bodypart[$id]);
You need 18MB of storage not including any other copies which may be in
scope, or other attachments.





More information about the bugs mailing list