Solved

Is my email corrupt???

Posted on 2009-07-10
3
431 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

728 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