This function retrieves an email filter's information.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ get_filter \ account='user@example.com' \ filtername='coffee'
{- "apiversion": 3,
- "func": "get_filter",
- "module": "Email",
- "result": {
- "data": {
- "actions": [
- {
- "action": "deliver",
- "dest": "/dev/null",
- "number": 1
}
], - "filtername": "coffee",
- "metadata": {
- "transformed": 1
}, - "rules": [
- {
- "match": "contains",
- "number": 1,
- "opt": "or",
- "part": "$message_body",
- "val": "coconut"
}
]
}, - "errors": null,
- "messages": null,
- "status": 1,
- "warnings": null
}
}