API2 Email::storefilter No valid rules.

simonas

Well-Known Member
Apr 21, 2013
141
0
16
Lithuania
cPanel Access Level
Root Administrator
Hello,

I am trying to setup email forwarder with filter (to not leave copy on server).

When submitting these values:

Array
(
[account] =>
[action] => deliver
[dest] => [email protected]
[filtername] => [email protected]
[match] => matches
[part] => $header_to:
[val] => [email protected]
)

Response from the API is: No valid rules.
Any ideas?om the API is: No valid rules.
Any ideas?

Thank you.

- - - Updated - - -

Figured it out myself.

Although API doc clearly states:

Specify an incremental version of this parameter only if you wish the filter to take more than one action.
You still need use numbered version:

Array
(
[account] =>
[action1] => deliver
[dest1] => [email protected]
[filtername] => [email protected]
[match1] => matches
[part1] => $header_to:
[val1] => [email protected]
)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.