The preferences node is required. It specifies preferences of Spam Filtering service for a specified user. For information on preferences, refer to the Spam Filtering Preferences section. Data type:SpamassassinPreferencesType (spamfilter.xsd).

Note: If you want to enable or disable Spam Filtering service without changing preferences, leave the preferences node blank (<preferences/>).

The enabled node is optional. Specify this node to enable Spam Filtering service for a specified SpamAssassin user. For more information, refer to the Managing Spam Filtering section. Data type: none.

The disabled node is optional. Specify this node to disable Spam Filtering service for a specified SpamAssassin user. For more information, refer to the Managing Spam Filtering section. Data type: none.

Remarks

You can retrieve info on users specified by SpamAssassin ID, and users specified by e-mail address in a single packet. Add ID's of users specified by SpamAssassin ID to the filter node of the first set operation, and e-mail addresses of users specified by e-mail address (or 'admin' string) to the filter node of the second set operation.

<set><filter>...</filter>...</set><set><filter>...</filter>...</set>

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

Response Packet Structure

The set node of the output XML packet is presented by type SpamFilterSetOutputType (spamfilter.xsd) and structured as follows:

The result node is required. It wraps the response retrieved from the server. Data type: resultFilterType (common.xsd).

The status node is required. It specifies the execution status of the set operation. Data type: string. Allowed values: ok | error.

The errcode node is optional. Is returns the error code if the set operation fails. Data type: integer.

The errtext node is optional. It returns the error message if the set operation fails. Data type: string.

The filter-id node is optional. It holds the filtering rule parameter. For information, refer to the Available Filters section. Data type: anySimpleType.

The id node is optional. It does not return any data for this operation. Data type: integer.

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.