[imp] Text Attachments & Large Email Problems

Brent J. Nordquist bjn@horde.org
Thu, 2 Nov 2000 07:18:49 -0600 (CST)


On Thu, 2 Nov 2000, Mike O'Connor <mike@ecom-express.net> wrote:

> Versions of software: (all installed from RPM's)
> apache-1.3.12-2
> php-imap-3.0.16-5horde7
> php-ldap-3.0.16-5horde7
> php-pgsql-3.0.16-5horde7
> php-3.0.16-5horde7
> horde-1.2.3-1
> imp-2.2.3-1
> imap-4.7-7
> openldap-1.2.10-4
> postgresql-6.5.2-1
> postgresql-devel-6.5.2-1
> postgresql-server-6.5.2-1

OK, these all should work fine, for purposes of the problems you're
reporting.  You should be aware that those versions of Apache and PHP have
security problems; you should upgrade to 1.3.14, and the Horde version of
3.0.17, as soon as you can.

> Problem 1:
> 
> Any email which has an attachment which ends in the extension of TXT
> will not display, the web browser just times out.
> 
> Problem 2:
> 
> Sending and receiving large attachments is very hit and miss.
> Displaying the email, (not the attachment) faults most of the time,
> with anything large than about 1Mb

Is it the browser timing out, or are you getting "Fatal error: Maximum
execution time exceeded" errors?  The latter is a PHP error; you can look
at upping the memory_limit and max_execution_time parameters in the
php3.ini file.

Also, Chuck has suggested in the past that for very large text files, PHP
4 has a built-in word-wrapping function that really helps performance, so
upgrading to 4 may also solve your problem.

What kind of server are you using?  (It isn't something really slow or
memory-limited is it?)

-- 
Brent J. Nordquist <bjn@horde.org>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942