[imp] Re: Attachment not shown

Fabio Gomes flgomes at fazenda.sp.gov.br
Fri Mar 4 10:42:15 PST 2005


-----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.


Thx.
- -- 
- ----------------------------------------------------------------------
Fábio Gomes                                <flgomes at fazenda.sp.gov.br>
Telefone:                                      11-3243-3400 ramal 4447
Visite:                  http://sefaznet.sede.fazenda.sp.gov.br/email/
Personal Public Key at:                       http://www.keyserver.net
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCKKwJCUaSOtGYE8kRAk4uAKCNwY04MxccYKPH9ZBi4g0ANJ1pIwCfcZIG
OAJy5JUH+aFvUhzJFrqPPw0=
=VQXK
-----END PGP SIGNATURE-----


More information about the imp mailing list