Partager via


About Anti-Spam Settings

Microsoft Outlook allows users to specify settings for each account to help protect the account from spam. Such anti-spam settings are stored in a section designated for that account in the user’s profile. Use the PROP_ACCT_PREFERENCES_UID property to obtain the unique ID (UID) for the section in the profile that stores the user’s preferences for this account, including the anti-spam settings.

Use the following properties to obtain anti-spam settings for the account:

  • PidTagSpamJunkSenders—Specifies a semicolon-delimited list of email addresses and domains that the user has specified as blocked senders for the account.

  • PidTagSpamThreshold—Specifies the level of spam-filtering that the user has specified for the account. The following table shows the supported values.

    Supported value

    Definition

    None

    0xFFFFFFFF

    Low

    0x00000006

    Medium

    0x00000005

    High

    0x00000003

  • PidTagSpamTrustedRecipients—Specifies a semicolon-delimited list of email addresses and domains that the user has specified as trusted recipients for the account.

  • PidTagSpamTrustedSenders—Specifies a semicolon-delimited list of email addresses and domains that the user has specified as trusted senders for the account.

See also

About the Account Management API

Add names to the Junk E-mail Filter lists