[imp] repost: attachments size is reported as Zero

Michael M Slusarz slusarz at bigworm.colorado.edu
Fri Oct 31 15:10:28 PST 2003


Quoting Francesco Consumi <consumi at istitutodeglinnocenti.it>:

| Hi to all,
|
| In my system the attachments in mail-view window are indicated as
| zero-size.

The relevant code is as follows (mailbox.php:556):
    if (isset($h->size)) {
        $msg['size'] = ($h->size > 1024)
            ? sprintf(_("%.0fkb"), $h->size / 1024)
            : $h->size;
    }

if $h->size is not set correctly, or is set to 0, there is something wrong
with your PHP/c-client combination since this information is obtained
directly from imap_fetch_overview().  You should upgrade and recompile
both.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list