Solved

Is my email corrupt???

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 dynamically set the form action using jQuery.

831 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