PHP Classes

imap_fetchstructure() error

Recommend this page to a friend!

      Read POP3/IMAP attachment  >  All threads  >  imap_fetchstructure() error  >  (Un) Subscribe thread alerts  
Subject:imap_fetchstructure() error
Summary:Warning: imap_fetchstructure() [function.imap-fetchstructure]: B
Messages:2
Author:Cesar Venegas
Date:2008-09-23 21:21:45
Update:2010-02-17 22:47:22
 

  1. imap_fetchstructure() error   Reply   Report abuse  
Picture of Cesar Venegas Cesar Venegas - 2008-09-23 21:21:45
Hello,

I have this error. My server have cpanel.

Warning: imap_fetchstructure() [function.imap-fetchstructure]:Bad message number in ....


Thanks

  2. Re: imap_fetchstructure() error   Reply   Report abuse  
Picture of Ryan E Ryan E - 2010-02-17 22:47:22 - In reply to message 1 from Cesar Venegas
This *MIGHT* be your problem, I'm not sure:



In the line:
$structure = imap_fetchstructure($mbox, $jk , FT_UID);

I took out the last argument FT_UID:
$structure = imap_fetchstructure($mbox, $jk );

and now it works.

I don't have a 100% explanation for it, but another script i saw didn't have this FT_UID argument, so thats why I tried taking it out. This made me lose many hours!