[imp] attachments not recognized

Robert Marchand robert.marchand@UMontreal.CA
Mon, 30 Jul 2001 16:31:06 -0400 (EDT)


Hi,

    I have placed a "var_dump" in message.php3 (just after the mimeparse
function) and it seems it is
considered as an image.  I mean this is were it goes:

			} else {
				print "<br>IMAGES<br>";
				if ($mime->ifid) $images[$mime->id] = $ref;
				$atc .= mimeSummary($mime);
			}

Here is what I get when clicking on the mail in IMP:

object(stdClass)(22) { ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "PLAIN"
["ifdescription"]=> int(0) ["ifid"]=> int(0) ["lines"]=>
int(4) ["bytes"]=> int(134) ["ifdisposition"]=> int(0) ["ifdparameters"]=>
int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(2)
{ [0]=> object(stdClass)(2) { ["attribute"]=> string(7) "CHARSET" ["value"]=>
string(8) "us-ascii" } [1]=> object(stdClass)(2) {
["attribute"]=> string(6) "FORMAT" ["value"]=> string(6) "flowed" } }
["header"]=> bool(false) ["imap_id"]=> string(1) "1"
["type"]=> int(0) ["TYPE"]=> string(4) "text" ["SUBTYPE"]=> string(5) "plain"
["disposition"]=> string(6) "inline" ["conf"]=>
array(4) { ["action"]=> string(7) "default" ["view"]=> bool(true) ["download"]=>
bool(true) ["icon"]=> string(13) "mime_text.gif" }
["charset"]=> string(8) "us-ascii" ["description"]=> string(20) "[pas de
description]" ["name"]=> string(20) "_pas_de_description_"
["encoding"]=> int(0) ["size"]=> string(4) "0.13" } 

object(stdClass)(22) { ["type"]=> int(3) ["encoding"]=> int(3) ["ifsubtype"]=>
int(1) ["subtype"]=> string(12) "OCTET-STREAM"
["ifdescription"]=> int(0) ["ifid"]=> int(0) ["bytes"]=> int(532)
["ifdisposition"]=> int(1) ["disposition"]=> string(10) "attachment"
["ifdparameters"]=> int(1) ["dparameters"]=> array(1) { [0]=>
object(stdClass)(2) { ["attribute"]=> string(8) "FILENAME"
["value"]=> string(13) "zattachment.Z" } } ["ifparameters"]=> int(1)
["parameters"]=> array(3) { [0]=> object(stdClass)(2) {
["attribute"]=> string(4) "NAME" ["value"]=> string(13) "zattachment.Z" } [1]=>
object(stdClass)(2) { ["attribute"]=> string(10)
"X-MAC-TYPE" ["value"]=> string(8) "5A495655" } [2]=> object(stdClass)(2) {
["attribute"]=> string(13) "X-MAC-CREATOR"
["value"]=> string(8) "4C5A4956" } } ["header"]=> bool(false) ["imap_id"]=>
string(1) "2" ["TYPE"]=> string(11) "application"
["SUBTYPE"]=> string(12) "octet-stream" ["conf"]=> array(5) { ["action"]=>
string(7) "default" ["view"]=> string(5) "false"
["inline"]=> string(5) "false" ["download"]=> string(4) "true" ["icon"]=>
string(19) "mime_compressed.gif" } ["name"]=> string(13)
"zattachment.Z" ["charset"]=> string(10) "ISO-8859-1" ["description"]=>
string(13) "zattachment.Z" ["size"]=> string(4) "0.52" } 
IMAGES


I'll continue to dig but if you have any hint...

Thanks.


En réponse à Chuck Hagenbuch <chuck@horde.org>:

> Quoting Robert Marchand <robert.marchand@UMontreal.CA>:
> 
> > I've checked on a test server with original config/mime.php3 and it's 
> still 
> > the same. Could it be (is there something else?) the IMAP server? It
> is pretty
> > old. Can it be PHP related?  Where and what to debug?
> 
> I'm really not sure. Do you have another server you can try it on?
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> Some fallen angels have their good reasons.
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 



------
Robert Marchand