I've got it working so I can add filters however if there are already some filters created for [email protected], the new filter is added to the bottom. Is it possible to bump it to the top via API call?
This is what I'm processing using PHP. Works fine.
This is what I'm processing using PHP. Works fine.
Code:
$args = array(
[account] => "[email protected]",
[filtername] => "Whitelist",
[part1] => "\$header_from:",
[match1] => "matches",
[val1] => ".*@domain\.net",
[opt1] => "or",
[action1] => "save",
[dest1] => "/INBOX",
[action2] => "finish",
[dest2] => ""
)
$cp->api2_query( "CPUSER", "Email", "storefilter", $args );