In message <
528ea09a...@rgvk.co.uk>
No, you need to look further down. The structure of the whole message would
typically be as follows:
1. Main headers of e-mail, which end with a blank line (in your example,
after the X-AntiAbuse line. In a message with an attachment one of the main
headers will be a line like:
Content-Type: multipart/mixed; boundary="----=_NextPart_000_0006_01.40"
(the boundary can be anything that is not going to appear in the body of the
message).
2. You would then get the body of the e-mail message, indicated by a line
matching the boundary above, but with two hyphens preceding. The boundary
marker is followed by header lines describing that chunk. In your example,
it is of content type "multipart/alternative". This is usually found with an
email where it has been sent in two formats, for example plain text and HTML.
So what you have above is a container within a container: the
multipart/alternative indicates that we have two or more chunks which contain
the same content, and the e-mail client is supposed to display the richest
one it can. There is another boundery marker, for the alternative
formats of the message. Then you get the declaration of the first, with
content type text/plain.
3. Further down you would get any other alternative formats. I would expect
to find a section of text/html containing the message text in HTML.
4. Eventually you would reach the top-level boundary marker again (the one
ending "99d_" in your case) and the first file attachment would be declared.
It is the headers immediately after that which are relevant. The
content-type would tell you what MIME type had been declared, and the content
disposition would declare it to be an attachment and possibly give a
filename. Here is an example from a message in my inbox:
------=_NextPart_001_0007_01CD2A3C.67CB6640--
------=_NextPart_000_0006_01CD2A3C.67CB6640
Content-Type: application/msword;
name="News-sheet 6 May 2012.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="News-sheet 6 May 2012.doc"
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAACAAAAjAAAAAAAAAAA
EAAAigAAAAEAAAD+////AAAAAI8AAACNAAAA////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
....
Word documents and other binary formats like zip files will usually be
encoded for transfer as base64, which looks like the example above, that is,
lots of lines all the same length containing uooer and lower case letters,
digits, plus and slash.
So if you locate the headers pertaining to the attachment, you will be able
to find out whether the problem is at your end or HotMail's.
--
Matthew Phillips
Durham