Office.DecryptedMessageAttachment interface
Represents an attachment in a decrypted message.
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
To learn how to develop an encryption add-in in Outlook, see Create an encryption Outlook add-in.
Properties
| attachment |
Specifies the type of attachment. |
| content | Specifies the Base64-encoded content of the attachment. |
| content |
Specifies the content identifier of an inline attachment. The |
| is |
If true, specifies that the decrypted attachment appears as an image in the body of the message instead of in the attachment list. If the |
| name | Specifies the name of the attachment. |
| path | Specifies the URL reference path of the attachment if its type is |
Property Details
attachmentType
Specifies the type of attachment.
attachmentType: MailboxEnums.AttachmentType;
Property Value
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
Important: Attachments of type MailboxEnums.AttachmentType.Item aren't currently supported.
content
Specifies the Base64-encoded content of the attachment.
content: string;
Property Value
string
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
Important: The content property isn't supported by attachments of type MailboxEnums.AttachmentType.Cloud.
contentId
Specifies the content identifier of an inline attachment.
The contentId property must be specified if isInline is set to true.
contentId?: string;
Property Value
string
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
Important: When images are added to a message as inline attachments, they're automatically assigned a content ID. In the body of a message, the content ID of an inline attachment is specified in the src attribute of the <img> element (for example, <img width=96 height=96 id="Picture_1" src="cid:image001.png@01DC1E6F.FC7C7410">). To easily identify and provide these inline attachments during decryption, we recommend saving the content IDs of inline attachments to the message header during encryption. Call Office.context.mailbox.item.getAttachmentsAsync to get the content ID of an inline attachment. Then, call Office.context.mailbox.item.internetHeaders.setAsync to save the ID to the header of the message.
isInline
If true, specifies that the decrypted attachment appears as an image in the body of the message instead of in the attachment list. If the isInline property isn't specified, its value is set to false.
isInline?: boolean;
Property Value
boolean
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
name
Specifies the name of the attachment.
name: string;
Property Value
string
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read
path
Specifies the URL reference path of the attachment if its type is MailboxEnums.AttachmentType.Cloud. The path property must be specified for attachments of type MailboxEnums.AttachmentType.Cloud.
path?: string;
Property Value
string
Remarks
[Api set: Mailbox 1.16]
Minimum permission level: read/write item
Applicable Outlook mode: Message Read