This class will not parse a non-MIME email. An example of a non-MIME email is one sent from a PHP script - 'mail($to, $from, $message);' without a headers section. This type of email would be ignorded by this class.
Also, some emailers like Hotmail do not use the filename="picture.gif" format but instead use filename=picture.gif. Again, an attachment named without the quotation marks will be ignored by this class.
Attachmets specified with 'Content-Disposition: inline' will also be ignored by this class as it will only accept attachments with the 'Content-Disposition: attachment' line.
Some emailers change their boundary line in the attachment section so again, these attachments will be ignored by this script. Best to detect a "--" with a strpos===0 to seperate multiple attachments and not use the default boundary line.
Check out my script. It should parse just about any email without a problem: http://www.graviton-mediatech.com/downloads/Email_Parser.zip