
Scott Taylor - 2009-09-30 19:55:14
I have been using the mime parser class for some time. Every once in a while I will get the error "MIME message decoding error: reached a premature end of data at position -1" or "MIME message decoding error: unexpected decoded message part type MessageStart in state 5 at position -1".
When I've researched the issue it seems that components within the text/plain portion of the email throw off the parsing process. If I go into the body of the email and remove components of the text/plain body and attempt to re-parse the message it works.
I'm guessing that this may be because the body is defined as quoted-printable and the parser process believes the data is longer than 76 characters (which it isn't).
Is this a problem others have faced and is there a plausible workaround?
Thanks
Scott