mail_policy_add($session_id, $client_id, $params);


Description:

Adds a new mail policy.


Input Variables:

$session_id, $client_id, $params

Parameters (in $params):

policy_name  (varchar(64))

virus_lover  (enum('N','Y'))

spam_lover  (enum('N','Y'))

banned_files_lover  (enum('N','Y'))

bad_header_lover  (enum('N','Y'))

bypass_virus_checks  (enum('N','Y'))

bypass_spam_checks  (enum('N','Y'))

bypass_banned_checks  (enum('N','Y'))

bypass_header_checks  (enum('N','Y'))

spam_modifies_subj  (enum('N','Y'))

virus_quarantine_to  (varchar(255))

spam_quarantine_to  (varchar(255))

banned_quarantine_to  (varchar(255))

bad_header_quarantine_to  (varchar(255))

clean_quarantine_to  (varchar(255))

other_quarantine_to  (varchar(255))

spam_tag_level  (float)

spam_tag2_level  (float)

spam_kill_level  (float)

spam_dsn_cutoff_level  (float)

spam_quarantine_cutoff_level  (float)

addr_extension_virus  (varchar(64))

addr_extension_spam  (varchar(64))

addr_extension_banned  (varchar(64))

addr_extension_bad_header  (varchar(64))

warnvirusrecip  (enum('N','Y'))

warnbannedrecip  (enum('N','Y'))

warnbadhrecip  (enum('N','Y'))

newvirus_admin  (varchar(64))

virus_admin  (varchar(64))

banned_admin  (varchar(64))

bad_header_admin  (varchar(64))

spam_admin  (varchar(64))

spam_subject_tag  (varchar(64))

spam_subject_tag2  (varchar(64))

message_size_limit  (int(11))

banned_rulenames  (varchar(64))

Output:

Returns the ID of the newly added mail policy.