Solved

Is my email corrupt???

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now