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
// Handles the SpamReporting event to process a reported message.
7
17
functiononSpamReport(event){
8
18
// Get the Base64-encoded EML format of a reported message.
@@ -23,7 +33,13 @@ function onSpamReport(event) {
23
33
24
34
// Run additional processing operations here.
25
35
26
-
/* Signals that the spam-reporting event has completed processing. It then moves the reported message to the Junk Email folder of the mailbox, then shows a post-processing dialog to the user. If an error occurs while the message is being processed, the `onErrorDeleteItem` property determines whether the message will be deleted. */
36
+
/**
37
+
* Signals that the spam-reporting event has completed processing.
38
+
* It then moves the reported message to the Junk Email folder of the mailbox,
39
+
* then shows a post-processing dialog to the user.
40
+
* If an error occurs while the message is being processed,
41
+
* the `onErrorDeleteItem` property determines whether the message will be deleted.
42
+
*/
27
43
constevent=asyncResult.asyncContext;
28
44
event.completed({
29
45
onErrorDeleteItem: true,
@@ -36,7 +52,3 @@ function onSpamReport(event) {
36
52
}
37
53
);
38
54
}
39
-
40
-
// IMPORTANT: To ensure your add-in is supported in the Outlook client on Windows, remember to map the event handler name specified in the manifest to its JavaScript counterpart
0 commit comments