2.2.2.6 Journal-Associated Attachments

 A journal-associated attachment links a Journal object with another object, such as a document. A Journal object MUST NOT have more than one journal-associated attachment.

The properties of a journal-associated attachment follow the requirements specified in [MS-OXCMSG] section 2.2.2 for Attachment objects, except that certain properties on the Attachment object MUST be set as specified in the following table.

Property

Value

PidTagAttachmentLinkId ([MS-OXCMSG] section 2.2.2.22)

0x00000004

PidTagAttachMethod ([MS-OXCMSG] section 2.2.2.9)

0x00000006

PidTagRenderingPosition ([MS-OXCMSG] section 2.2.2.16)

0xFFFFFFFF

PidTagAttachmentFlags ([MS-OXCMSG] section 2.2.2.23)

0x00000000

PidTagAttachmentHidden ([MS-OXCMSG] section 2.2.2.24)

0x00

PidTagAccess ([MS-OXCPRPT] section 2.2.1.1)

0x00000002

The content of the PidTagAttachDataBinary property ([MS-OXCMSG] section 2.2.2.7) is formatted as a structured storage that comprises eight streams, the names and contents of which are detailed in the following table.

Stream name

Contents

IOlePres000

A metafile that contains the icon to be used when rendering the attachment.

\3MailStream*

Binary contents: 04 00 00 00 00 00 00 00 00 00 00 00

MailMsgAttFld

The EntryID of the folder of the linked Message object.

MailMsgAttMdb

The EntryID of the store of the linked Message object.

MailMsgAttMsg

The EntryID of the linked Message object; required only if the MailMsgAttSrchKey stream is empty.

MailMsgAttSrchFld

The object EntryID of the Sent Items special folder of the linked Message object. For details about special folders, see [MS-OXOSFLD].

MailMsgAttSrchKey

The value of the PidTagSearchKey property ([MS-OXCPRPT] section 2.2.1.9), as specified in [MS-OXCMSG], of the linked Message object; required only if the MailMsgAttMsg stream is empty.

MailMsgAttSubject

The value of the PidTagSubject property ([MS-OXCMSG] section 2.2.1.46) of the linked Message object.

* The "\3" in "\3MailStream" represents the byte 0x03.