Solved

Is my email corrupt???

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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