title: imap_fetchstructure() doesn't return the parts object
body: <p>I have a problem in imap_fetchstructure($this->stream,$messageNumber).
  some email used is working perfectly and another email is not working, the problem is: the parts object is missing in the structure.</p>
  
  <p>as i said some gmail account the code working perfectly and the one which i have to use not working to fetch the message structure. but mail info, header i got without problem, the problem is if i call this function </p>
  
  <p>$msg  =  $imap->returnEmailMessageArr($val['msgno']);</p>
  
  <p>//after that this function is called</p>
  
  <p>private function returnMessageStructureObj($messageNumber){</p>
  
  <pre><code>    return imap_fetchstructure($this-&gt;stream,$messageNumber);
  }
  </code></pre>
  
  <p>for that gmail account which is not fetching the parts object ,the structure is as following :</p>
  
  <pre><code>stdClass Object
  (
      [type] =&gt; 0
      [encoding] =&gt; 4
      [ifsubtype] =&gt; 1
      [subtype] =&gt; HTML
      [ifdescription] =&gt; 0
      [ifid] =&gt; 0
      [lines] =&gt; 166
      [bytes] =&gt; 9904
      [ifdisposition] =&gt; 0
      [ifdparameters] =&gt; 0
      [ifparameters] =&gt; 0
      [parameters] =&gt; stdClass Object
          (
          )
  
  )
  </code></pre>
  
  <p>Please help me to find that problem thanks a lot</p>