[imp] Re: Attachment not shown

Michael M Slusarz slusarz at mail.curecanti.org
Wed Mar 9 23:18:27 PST 2005


Quoting Fabio Gomes <flgomes at fazenda.sp.gov.br>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Em Sex 04 Mar 2005 12:03, Fabio Gomes escreveu:
>> Hi list,
>>
>>  There's a problem here with an IMP 3.2.7 installation using php 4.3.10 and
>> apache 2.0.53.
>>  The problem is that IMP doesn't detect attachments lower than 1kb in size.
>> They are not shown in message.php. Larger attachments are shown without
>> problems.
>>  Did anyone experienced that before? How can I solve that problem?
>>
>> Thank you,
>> --
>> ----------------------------------------------------------------------
>> Fábio Gomes                                <flgomes at fazenda.sp.gov.br>
>> Personal Public Key at:                       http://www.keyserver.net
>> ----------------------------------------------------------------------
>
> I've just found the piece of code that handles the option to show or not to
> show attachments in message.php:
>
> horde/imp/lib/IMP.php (line 1025):
>
>    function partSummary(&$mime, $index)
>    {
>        if (!($mime->size > 0)) {
>            // don't display zero-size attachments
>            return '';
>        }
>
>
> I simply commented those lines. But it'd be better correct the code.

Fixed in IMP 3.2.8.  Patch:
http://cvs.horde.org/diff.php/imp/lib/IMP.php?r1=1.198.2.67&r2=1.198.2.68&ty=u

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list