Hello all, I have one situation other than the normal that I cannot extract/save the MIME content of an e-mail which Content-type is different than the normal.
When I get attachments that have the following normal structure: =============================== Content-Type: application/x-zip-compressed; name="file1.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="file1.zip" =============================== It works perfectly. But I some e-mail clients e-mail me somthing like bellow: =============================== Content-Type: application/octet-stream; name="file2.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="file2.zip" X-MailScanner: Found to be clean Status: =============================== Then, it does not work and the system thinks that the e-mail has NO ATTACHMENTS. This is weird. Since the only difference here is the Content-Type besides the X-MailScanner and Status in the last lines, could anyone help me handle it? Also, is there anyway to get arrays for each of then separately like : Content-Type, Content-Transfer-Encoding and Content-Disposition? A regular mail client like Netscape and OutlookExpress can easily see the attachment but I cannot do it with PHP imap. This is a difficult question. Does anyone know how to answer it? Thanks, Carlos Fernando Scheidecker Antunes Linux User #207984 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php