You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14264
+
*
14265
+
* To learn how to develop an encryption add-in in Outlook, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/encryption-decryption | Create an encryption Outlook add-in}.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14312
+
*
14313
+
* **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
14314
+
* specified in the `src` attribute of the `<img>` element (for example, `<img width=96 height=96 id="Picture_1" src="cid:[email protected]">`).
14315
+
* 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.
14316
+
* 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.
14317
+
*
14318
+
* @beta
14319
+
*/
14320
+
contentId?: string;
14321
+
/**
14322
+
* If true, specifies that the decrypted attachment appears as an image in the body of the message instead of in the attachment list.
14323
+
* If the `isInline` property isn't specified, its value is set to false.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14376
+
*
14377
+
* To learn how to develop an encryption add-in in Outlook, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/encryption-decryption | Create an encryption Outlook add-in}.
14378
+
*
14379
+
* @beta
14380
+
*/
14381
+
interface DecryptedMessageBody {
14382
+
/**
14383
+
* Specifies the format of the body of a message.
14384
+
* The body of a message can be formatted as `Office.CoercionType.Html` or `Office.CoercionType.Text`.
* - Support to assign a `SmartAlertsEventCompletedOptions` object to the `options` parameter was introduced in Mailbox 1.12.
18800
18961
*
18801
-
* @param options - Optional. An object that specifies the behavior of an event-based or spam-reporting add-in when it completes processing an event.
18962
+
* @param options - Optional. An object that specifies the behavior of an event-based, spam-reporting, or decryption add-in when it completes processing an event.
* Specifies the behavior of an {@link https://learn.microsoft.com/office/dev/add-ins/outlook/encryption-decryption | encryption add-in} after it completes processing an
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20856
+
*
20857
+
* @beta
20858
+
*/
20859
+
interface MessageDecryptEventCompletedOptions {
20860
+
/**
20861
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler,
20862
+
* this value indicates if the `OnMessageRead` event should continue to run or be canceled. If the `allowEvent` property is set to `true`, the decrypted contents of the message is displayed.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20871
+
*
20872
+
* @beta
20873
+
*/
20874
+
allowEvent: boolean;
20875
+
/**
20876
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler
20877
+
* and set its `allowEvent` property to `true`, this property sets the decrypted attachments of the message.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20886
+
*
20887
+
* @beta
20888
+
*/
20889
+
attachments?: DecryptedMessageAttachment[];
20890
+
/**
20891
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler
20892
+
* and set its `allowEvent` property to `true`, this property specifies any JSON data passed to the add-in for processing.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20901
+
*
20902
+
* **Important**:
20903
+
*
20904
+
* - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync`.
20905
+
* If you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using `JSON.parse()` once you retrieve it.
20906
+
*
20907
+
* - You can use the `contextData` property to store custom internet headers to decrypt messages in reply and forward scenarios.
20908
+
*
20909
+
* @beta
20910
+
*/
20911
+
contextData?: any;
20912
+
/**
20913
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler
20914
+
* and set its `allowEvent` property to `true`, this property sets the decrypted contents of the body of the message.
0 commit comments