Solved

IMAP - No body information available

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
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.
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.

776 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