Craig Webster wrote:
> On 10 Apr 2006, at 13:51, Jon Daley wrote:
>>     You need to increase your php memory limit in the php.ini file:
>>
>> I use this:
>> memory_limit = 64M
>>
>> I have only seen RC use 20 megs.
> 
> Quick heads-up to say that this could be a fair problem for some shared
> hosts. Here we allow up to 24M per process because a lot of our
> customers run Drupal or Civicspace which needs a good bit of memory, but
> it's more usual for the default to be left in there at 8M.
> 
> Does anyone have ideas for how to work this out? Perhaps splitting up
> $input a little before the regular expression?

The main problem is, that this PEAR class is not very efficient and
requires the whole message source for input. Memory usage gets high when
opening multipart messages. If you get a mail with a 20M attachment you
would run into memory problems even if you split $input.

The only solution is to fetch only the message structure from IMAP and
analyze the parts. But this is a major change and will not be solved
within a couple of days. The only solution for now is to increase the
memory_limit in php.ini
> 
> Yours,
> Craig

Regards,
Thomas



Reply via email to