PHP Classes

Error: "reached a premature end of data"

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Error: "reached a premature end of data"  >  (Un) Subscribe thread alerts  
Subject:Error: "reached a premature end of data"
Summary:What am I doing wrong when getting this error?
Messages:2
Author:Max Frigge
Date:2008-01-25 14:30:10
Update:2008-01-25 15:52:47
 

  1. Error: "reached a premature end of data"   Reply   Report abuse  
Picture of Max Frigge Max Frigge - 2008-01-25 14:30:11
Hey,

I read my mailbox using the pop3 class and after I have written the file to the server I parse it with the MIMI parser to get the header information. On some messages I get the following error message:

"reached a premature end of data"

What am I doing wrong and how can I avoid this??

Max

  2. Re: Error: "reached a premature end of data"   Reply   Report abuse  
Picture of Max Frigge Max Frigge - 2008-01-25 15:52:47 - In reply to message 1 from Max Frigge
Mh.. it looks like I fixed that issue. I added an extra line break between header and body in the .eml files I generate. I am not sure if that is a proper solution but it works.