pem.spam_assassin.addItems

This method is supported by Operations starting from version 5.0

This method adds e-mail addresses into the white or black list of QMail Mailbox, which is protected by the SpamAssassin service.

The method has the following input parameters:

Name

Type

Short Description

login

string

Login name of Service User, which is an owner of the QMail Mailbox. This parameter specifies the required QMail Mailbox.

list

string

This parameter defines the list, where the e-mail addresses are added. There are the following options:

  • white – white list of senders,
  • black – black list of senders.

items

array of strings

List of e-mail addresses.

Notes:

1. The wildcards ? and * can be used. For instance: *@example.com

2. When e-mail address is added into one list, this e-mail address is removed from another list.

The method has no output parameters.