I construct a webmail for my website...
I have some trouble with the following function imap_fetchstructure...
I can not verify the real type of the mail (always TYPETEXT, i can not detected the size and if there are a attached file
here is a sample of the code and the result
code :
Code: Select all
<?php
$mbox = imap_open("{".$mailServer.":143/imap}INBOX",$user,$password);
$objet = imap_fetchstructure($mbox, $msg);
echo "\$objet->type:".$objet->type."<br />\n";
echo "\$objet->encoding:".$objet->encoding."<br />\n";
echo "\$objet->ifsubtype:".$objet->ifsubtype."<br />\n";
echo "\$objet->subtype:".$objet->subtype."<br />\n";
echo "\$objet->ifdescription:".$objet->ifdescription."<br />\n";
echo "\$objet->ifid:".$objet->ifid."<br />\n";
echo "\$objet->lines:".$objet->lines."<br />\n";
echo "\$objet->bytes:".$objet->bytes."<br />\n";
echo "\$objet->ifdisposition:".$objet->ifdisposition."<br />\n";
echo "\$objet->ifdparameters:".$objet->ifdparameters."<br />\n";
echo "\$objet->ifparameters:".$objet->ifparameters."<br />\n";
echo "\$objet->parameters[0]->attribute:".$objet->parameters[0]->attribute."<br />\n";
echo "\$objet->parameters[0]->value:".":".$objet->parameters[0]->value."<br />\n";
echo "\$objet->parameters[1]->attribute:".$objet->parameters[1]->attribute."<br />\n";
echo "\$objet->parameters[1]->value:".$objet->parameters[1]->value."<br />\n";
imap_close($mbox);
?>Code: Select all
$objet->type:0
$objet->encoding:0
$objet->ifsubtype:0
$objet->subtype:
$objet->ifdescription:0
$objet->ifid:0
$objet->lines:
$objet->bytes:
$objet->ifdisposition:0
$objet->ifdparameters:0
$objet->ifparameters:0
$objet->parametersї0]->attribute:
$objet->parametersї0]->value::
$objet->parametersї1]->attribute:
$objet->parametersї1]->value:Can someone can help me or fix why i have this problem... i have read some post that could be a bug of imap_fetchstructure
thanks in advance for your help
feyd | added
Code: Select all
andCode: Select all
tags :: [/color][url=http://forums.devnetwork.net/viewtopic.php?t=21171][color=red]:arrow: [u][b]Posting Code in the Forums[/b][/u][/color][/url]