On Wed, Sep 28, 2011 at 12:15 PM, Gustavo - Emar Plásticos <
supo...@emar.com.br> wrote:

> Hi all, i made a code in PHP to save in a directory the XML attachments !
> All goes well until it comes across an email that has attachment but can
> not save !
>
> analyzing the source code of this email, i realized it has no line:
>
> Content-Disposition: attachment; filename="name of the file.xml"
>
> but only this line:
>
> Content-Type: application/octet-stream; name=name of file.xml
> Content-Transfer-Encoding: base64
>
> I´m using IMAP and the account is from Google: $host = "{
> imap.gmail.com:993/imap/ssl}**INBOX<http://imap.gmail.com:993/imap/ssl%7DINBOX>
> ";
>
> What happend ?
> Thanks any help
>
> Gustave
>

My suspicion is that the email contained no actual text body, so google
converted the entire email message into the attachment (in octet-stream
format).

Unfortunately, email is only somewhat standardized. You'll have to make your
programs deal with these sort of oddities, as they'll be inevitable.

-- 
--Zootboy

Sent from my PC.

Reply via email to