RoundCube And php conf (memory).. and Header already sent

Thomas Bruederli roundcube at gmail.com
Mon Jun 26 14:15:12 CEST 2006


This is a known problem (Ticket #1456986) and it depends on the PEAR
class that is used to create the multipart message. Please note that
files have to be encoded to base64 for sending which will grow them by
30-50%. Also the whole message is kept in memory before sending it to
the SMTP server. One solution would be rewrite the class working with a
file stream but if you're using the mail() function, the whole message
body has to be passed as a variable. And we're back where we are.

We will try to optimize the memory usage with the current class by using
more references but this wouldn't solve the problem entirely.

Regards,
Thomas


Num ber wrote:
> Thanks for your reply..
> Yes i know that, but where can i fond the 6Mb that the program use?
> 
> For-me, a mail with an attachement (1.4mo) with no text,no subject, to
> only one recepien..
> 
> Never do more than 8 Mo ... or i'm crazy..
> 
> I can test with a limite more than 8Mo, but what value can i put ?
> 16Mo?
> 20Mo ?
> What are the value than most people use?
> 
> Many thanks
> 
> 
>> Please keep in mind that 8 Mb is for the entire program, not just 
>> attachments.  There must not have been 1.4 Mb left out of the 8 Mb.
>>
>> If you send that error to your web hosting provider/ISP/etc, I'm sure 
>> they would raise the limit in php.ini for you?
>>
>> Rich
>>
>>
>> On Jun 18, 2006, at 12:58 AM, Num ber wrote:
>>
>>> Nobody ?? :-(
>>>
>>>> Hello,
>>>>
>>>> I'm use roundcube and roundcube svn for test-it...
>>>> And when i try to send a mail with a attachement i have this error :
>>>>
>>>> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried 
>>>> to allocate 1429843 bytes) in /var/www/html/number/mail/
>>>> roundcubemail/program/lib/Mail/mimePart.php on line 236
>>>>
>>>> I know, i cant change the limit on php.ini (from 8 to ??) but, i 
>>>> don't understand..
>>>> my attachement do only 1Mo ...
>>>>
>>>> Why roundcube use more than 8Mo ? and give this error?
>>>> When i send a mail with a .doc (577ko) i don't have this fatal  error..
>>>>
>>>> But with two or 2 .doc (577ko) i don't have this error..
>>>>
>>>> I really don't understand.. the maximum memory is set to 8mo ..  not
>>>> ton 1 ..
>>>>
>>>> Thanks for your help
>>>>
>>>> (And to finish, i have the same error than toxygen but no espace  at
>>>> the end of config)
>>>>
>>>> Manhy thanks :-)
>>>
>>> _________________________________________________________________
>>> Retrouvez vos dossiers de partage où que vous soyez grâce à la 
>>> nouvelle version de Messenger! http://imagine-msn.com/minisites/
>>> messenger/default.aspx?locale=fr-be
>>>
>>>
>>>
>>
> 
> _________________________________________________________________
> Votre ordinateur est aussi bien rangé que votre chambre ? Retrouvez tout
> avec la barre d'outils MSN Search !
> http://join.msn.com/mobile-Messaging/overview
> 
> 




More information about the users mailing list