Solved

IMAP - No body information available

Posted on 2009-07-12
3
1,258 Views
Last Modified: 2013-11-29
I have something going on that is really weird.  If I start the below code with $i=91 and iterate to 100, I get 9 nice structures.  But, if I start $i=90 then I get 10 messages that say:

Warning: imap_fetchstructure() [function.imap-fetchstructure]: No body information available in ...

What seems to be causing this is when I move mail from oldmailbox/cur to newmailbox/new

I'm using Postfix and Dovecot on a FreeBSD machine.

Any help would be greatly appreciated.

Derek
$i=91;
do
{
	$result = imap_fetchstructure($mbox,$i);
	var_dump($result);
	$i++;
} while ($i<100);

Open in new window

0
Comment
Question by:hrolsons
  • 2
3 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 24841047
Message 90 could have been deleted, but has not been purged.
Check the options of the message. The options could be reflected at the end of the filename separated by commas.
i.e. filename:option1,option2
Also check the permissions on the message () i.e. does it have a t or T in the file permissions/type.
0
 

Author Comment

by:hrolsons
ID: 24841167
The only options I see are "2" and some have an "S".

All the permissions are "-rw-------"
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 24842305
Could you look at the message to see whether there is truely a message without a body?
Use the size of the message as an indicator. I.e. all messages but one are 4k while one message is 0 or 10bytes.
I think these options indicate whether the message was seen, or read.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Usenet? There are many different opinions on exactly what Usenet is an isn't. Many opinions are incorrect simply out of ignorance. The Wikipedia listing about Usenet does a good job of explaining it, so instead of repeating it all here I wi…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question