[imp] [Imp: 4.0-cvs] some download attachements are currupts...

Antoine Michea michea at iut-dijon.u-bourgogne.fr
Thu Oct 30 06:48:53 PST 2003


Hello all..
I have pb when i want to download some attachements like .xls .doc .jpg ...
but all is good when it's .zip file or when i download this attachements
with the link "Download All Attachments (in .zip file)".
So i looking for where is the pb and i find that the xls file that i
download with imp is different as the original file. It missing the first
octet. But i don't know why !!!
So i modify view.php in imp like this :
// $Horde: imp/view.php,v 2.177 2003/09/30 21:01:39 chuck Exp $
// line 67 :
case 'download_attach':
case 'download_render':
//    switch ($actionID) {
//    case 'download_attach':
        /* Make sure we get the entire contents of the part. */
        $mime = $contents->getDecodedMIMEPart($id, true);
        $body = $mime->getContents();
//        break;

//    case 'download_render':
        $body = $contents->renderMIMEPart($mime);
//        break;
//    }
And  now it's ok, i can d/l all attachements ... but i don't understand
why..

The other pb i have is to view the jpg attachement online... but i think
it's teh same pb..
Please help me :-)

Sorry for my poor english !
Antoine.

My settings :

Horde Version
    * Horde: 3.0-cvs
Horde Applications
    * Horde: 3.0-cvs
    * Imp: 4.0-cvs (run Imp tests)
    * Turba: 2.0-cvs (run Turba tests)
    * Kronolith: 2.0-cvs
    * Mnemo: 2.0-cvs
PHP Version
    * View phpinfo() screen
    * View loaded extensions
    * PHP Version: 4.3.1
    * PHP Major Version: 4.3
    * PHP Minor Version: 1
    * PHP Version Classification: release
    * You are running a supported version of PHP.
PHP Module Capabilities
    * Ctype Support: Yes
    * DOM XML Support: Yes
    * FTP Support: Yes
    * GD Support: Yes
    * Gettext Support: Yes
    * Iconv Support: No
    * IMAP Support: Yes
    * LDAP Support: Yes
    * Mbstring Support: Yes
    * MCAL Support: No
    * Mcrypt Support: Yes
    * MIME Magic Support: Yes
    * MySQL Support: No
    * OpenSSL Support: Yes
    * PostgreSQL Support: Yes
    * XML Support: Yes
    * Zlib Support: Yes
Miscellaneous PHP Settings
    * magic_quotes_runtime disabled: Yes
    * memory_limit disabled: No
      If PHP's internal memory limit is turned on and is set too low, Horde
will not be able to handle large data items (e.g. large mail attachments in
IMP). If possible, you should disable the PHP memory limit by recompiling
PHP without the "--enable-memory-limit" flag. If this is not possible, then
you should set the value of memory_limit in php.ini to a sufficiently high
value (Current value of memory_limit: 30M).
    * file_uploads enabled: Yes
    * safe_mode disabled: Yes
    * session.use_trans_sid disabled: Yes
Required Horde Configuration Files
    * config/conf.php: Yes
    * config/html.php: Yes
    * config/mime_drivers.php: Yes
    * config/nls.php: Yes
    * config/prefs.php: Yes
    * config/registry.php: Yes
PHP Sessions
    * Session counter: 5
    * To unregister the session: click here
PEAR
    * PEAR Search Path (PHP's include_path):  .:/usr/share/pear
    * PEAR: Yes
    * Recent PEAR: Yes
    * Mail_RFC822: Yes
    * Mail_Mime: Yes
    * Log: Yes
    * DB: Yes
    * Net_Socket: Yes
    * Date: Yes
    * Auth_SASL: Yes
    * Net_URL: Yes
    * HTTP_Request: Yes
    * File: Yes
    * Net_SMTP: Yes
    * VFS: Yes
    * XML_SVG: Yes



More information about the imp mailing list