[imp] Downloading Attachments Problem

Chuck Hagenbuch chuck@horde.org
Mon, 2 Sep 2002 18:34:45 -0400


Quoting Rodolfo Segleau <segleaur@mechanus.org>:

> I've gotten several reports from several of the users that lately
> downloading attachments via IMP has been impossible. What they're telling 
> me (and I confirmed it) is that via IMP the attachment downloads almost 
> all the way and then stops at the last 1% or so. I tested out Gollem to 
> see if it was giving the same problem with the SQL server, but it 
> downloads attachments without a problem. My environment is as follows:

I'm seeing some binary attachments become corrupted; I'm updating PHP now,
and will try to see if that changes anything.

Gollem doesn't send a content-length when downloading, while IMP does; if
you change:

$browser->downloadHeaders($mime->getName(true), null, false, strlen($body));

to:

$browser->downloadHeaders($mime->getName(true));

... does that change anything?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot