Office.SpamReportingEventArgs interface

迷惑メッセージが報告されたときに発生する Office.EventType.SpamReporting イベントに関する情報を提供します。

注釈

API セット: メールボックス 1.14

// 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."
            }
        });
    }
}

プロパティ

freeText

スパム報告アドインの前処理ダイアログでユーザーによって提供されたテキスト。

options

スパム報告アドインの前処理ダイアログでユーザーが選択した各報告オプションの true を返します。

type

発生したイベントの種類。 詳細については、「 Office.EventType」を参照してください。

プロパティの詳細

freeText

スパム報告アドインの前処理ダイアログでユーザーによって提供されたテキスト。

freeText: string;

プロパティ値

string

注釈

API セット: メールボックス 1.14

スパム報告アドインの前処理ダイアログにオプションのテキスト ボックスを追加するには、アドインのマニフェストで FreeTextLabel 要素を構成する必要があります。

スパム報告アドインを開発する方法の詳細については、「統合されたスパム報告アドインを実装する」を参照してください

options

スパム報告アドインの前処理ダイアログでユーザーが選択した各報告オプションの true を返します。

options: boolean[];

プロパティ値

boolean[]

注釈

API セット: メールボックス 1.14

配列内のブール値の順序は、アドインのマニフェストの ReportingOptions 要素で指定されているレポート オプションの順序に対応します。

スパム報告アドインを開発する方法の詳細については、「統合されたスパム報告アドインを実装する」を参照してください

type

発生したイベントの種類。 詳細については、「 Office.EventType」を参照してください。

type: "SpamReporting";

プロパティ値

"SpamReporting"

注釈

API セット: メールボックス 1.14