Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

IMAP - No body information available

Posted on 2009-07-12
3
Medium Priority
?
1,396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 80

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 80

Accepted Solution

by:
arnold earned 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

604 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