Solved

IMAP - No body information available

Posted on 2009-07-12
3
1,193 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 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
The only options I see are "2" and some have an "S".

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

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now