[imp] attachments not attached properly

Eric Rostetter eric.rostetter at physics.utexas.edu
Tue Aug 5 11:25:05 PDT 2003


Quoting Kobold <kobold2 at yahoo.com>:

> my setup:
> RH9,
> httpd-2.0.40-21.i386.rpm
> php-4.2.2-0horde3.i386.rpm

> Eveything looks fine, but a major showstopper is that
> mails with attachments are not sent properly.
>
> On the receiveng end, there appears to be two
> attachments
> (while only one was sent), of those one is bogus
> (empty), the other is truncated (ie. only half of a
> .jpg file).
>
> The reported size of the attachment is correct
> however.

Usually this means you have setup the php as both a filter and a handler, ala
the warning from CVS HEAD docs/INSTALl file:

   Note: The above instructions may not work if you have specified
         PHP as an output filter with SetOutputFilter directive
         in Apache 2.x versions.  In particular, RedHat 8.0 Apache 2.x
         RPMS have the output filter set, and MUST NOT have the above
         AddType directive added.

So if you have something like:

AddType application/x-httpd-php .php

in /etc/http/conf/httpd.conf remove it, restart your server, and see if
the problem goes away.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list