?
Solved

Is my email corrupt???

Posted on 2009-07-10
3
Medium Priority
?
440 Views
Last Modified: 2012-08-13
I'm running a very simple loop:
      $i=558;
      do
      {
            echo "$i-------------------";
            $s=imap_fetchstructure($mbox,$i);
            var_dump($s);
            echo "<P>";
            $i++;
      } while ($i<600);

If I go through the mailbox from 558 to 600 it spits out a nice fetchstructure for all the emails.  But, if I go from 557 to 600, it says:

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

For every single email.  Does this make sense to anyone?  What could be in 557 that would cause all future fetchbody's to fail?

Derek
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 16

Expert Comment

by:brad2575
ID: 24825547
Is there any text in the body of that email?
0
 

Author Comment

by:hrolsons
ID: 24825710
It appears to be blank.  I did imap_savebody() and it was blank.
0
 

Accepted Solution

by:
hrolsons earned 0 total points
ID: 24827447
I created a new mailbox and I'm no longer having problems, so I suspect it was corrupt.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 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