1
Vote

message.BodyParts[0].Parameters Bug!

description

Hi,

When a message is received with no attachment(s).
message.BodyParts[0].Parameters collection is fully populated with message headers information (about 22).
I can retrieve this way the 'message-id' I'm interested in !

When the same message has an attachment, the parameters is poorly populated with only basic informations.
'message-id' is missing !

Whatever you call message.Download(..Full, true), no way, no more header populated in ....Parameters.

Any Idea ?

comments

sliver wrote Jun 11, 2016 at 2:11 PM

Well by inspecting exchange with the server, we can see the FETCH syntax is slightly different:

The one with attachment is :
* 1 FETCH (UID 6898 RFC822.SIZE 4295 INTERNALDATE "11-Jun-2016 08:54:18 +0000" FLAGS () BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "BASE64" 242 3 NIL NIL NIL)("TEXT" "XML" ("NAME" "Attachment_63601239208428560111-06-2016-10h53m28s428ms.txt") NIL NIL "QUOTED-PRINTABLE" 51 0 NIL ("ATTACHMENT" NIL) NIL) "MIXED" ("BOUNDARY" "--boundary_0_2515d018-b439-4cd9-a47c-d2e337b43524") NIL NIL) BODY[HEADER.FIELDS (FROM TO DATE SUBJECT CC CONTENT-TYPE)] {246}
and, the one without attachment is:
* 1 FETCH (UID 6898 RFC822.SIZE 4295 INTERNALDATE "11-Jun-2016 08:54:18 +0000" FLAGS () BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "BASE64" 242 3 NIL NIL NIL)("TEXT" "XML" ("NAME" "Attachment_63601239208428560111-06-2016-10h53m28s428ms.txt") NIL NIL "QUOTED-PRINTABLE" 51 0 NIL ("ATTACHMENT" NIL) NIL) "MIXED" ("BOUNDARY" "--boundary_0_2515d018-b439-4cd9-a47c-d2e337b43524") NIL NIL) BODY[HEADER.FIELDS (FROM TO DATE SUBJECT CC CONTENT-TYPE)] {246}
the latter returns a bunch of headers, the first one not !

Although, both contains 'BODY[HEADER.FIELDS (FROM TO DATE SUBJECT CC CONTENT-TYPE)', they behave differently!

Is there any worry with request, so that the server do not return all header ?