> I generally lurked to this list. I'm writing to you because
> I'm getting a problem which I cannot identify the cause.
> I'm using roudcube-0.1-rc1, with courierimap installed together
> with a qmail-toaster package.
> Everything works nice, beside a point:
> - an email with body bigger than 200k (i'm experiencing problems
> with mails of 400 and 600k) when opened gives a black page.
> All other mails (tiny) open correctly.
> What could it be the cause? cannot rc handle mails with big
> body content?
> Thank you for your hints.
1) Enable logging (config/main)
2) Then open one of your big emails and check logs/error (tail -f ...)
3) Then you probably need to finetune settings (memory_limit, etc.) in php.ini
> > Thank you for your hints.
>1) Enable logging (config/main)
>2) Then open one of your big emails and check logs/error (tail -f ...)
>3) Then you probably need to finetune settings (memory_limit, etc.) in php.ini
You were right.
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried
to allocate 4210936 bytes) in .../rcwebmail/program/steps/mail/func.inc on
I adjusted memory_limit. It's taking so much memory because the message is
email and web addresses are translated into <a>...</a> sequences, and I had
a lot of them because
the mail was a report.
Now, since the mail is big, how can I know if the message is sent compressed?
// set output buffering
if ($_action != 'get' && $_action != 'viewsource')
// use gzip compression if supported
if (function_exists('ob_gzhandler') && ini_get('zlib.output_compression'))
_task=mail&_action=show should include the case of compressed output,
but the message took quite some time...
how can I be sure it was transmitted compressed?