Office.SpamReportingEventArgs interface
提供有关 Office.EventType.SpamReporting 报告未经请求的消息时发生的事件的信息。
注解
示例
// This example handles a SpamReporting event to process a reported spam or phishing message.
function onSpamReport(event) {
if (event.type === "SpamReporting") {
const reportedOptions = event.options;
const additionalInfo = event.freeText;
// Run additional processing operations here.
// Signal that the event has completed processing.
event.completed({
moveItemTo: Office.MailboxEnums.MoveSpamItemTo.CustomFolder,
folderName: "Reported Messages",
onErrorDeleteItem: true,
showPostProcessingDialog: {
title: "Contoso Spam Reporting",
description: "Thank you for reporting this message."
}
});
}
}
属性
| free |
用户在垃圾邮件报告加载项的预处理对话框中提供的文本。 |
| options |
|
| type | 引发的事件的类型。 有关详细信息,请参阅 Office.EventType。 |
属性详细信息
freeText
用户在垃圾邮件报告加载项的预处理对话框中提供的文本。
freeText: string;
属性值
string
注解
若要向垃圾邮件报告加载项的预处理对话框添加可选文本框,必须在加载项清单中配置 FreeTextLabel 元素。
若要详细了解如何开发垃圾邮件报告加载项,请参阅 实现集成垃圾邮件报告加载项。
options
true返回用户在垃圾邮件报告加载项的预处理对话框中选择的每个报告选项。
options: boolean[];
属性值
boolean[]
注解
数组中布尔值的顺序对应于加载项清单的 ReportingOptions 元素中指定的报表选项的顺序。
若要详细了解如何开发垃圾邮件报告加载项,请参阅 实现集成垃圾邮件报告加载项。