?
Solved

IMAP - No body information available

Posted on 2009-07-12
3
Medium Priority
?
1,355 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 79

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 79

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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

765 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