Example use case: block all messages from a sender, except ones matching a specific pattern.
if (body.startsWith("Important")) { allow; }
if (sender.equals("10001")) { block; }
To implement this, add an "allow" option to filters, and make them ordered. The first filter that returns either "allow" or "block" will determine what happens to the message. This will not cover all combinations, but will be enough in practically all real-life situations.
Example use case: block all messages from a sender, except ones matching a specific pattern.
To implement this, add an "allow" option to filters, and make them ordered. The first filter that returns either "allow" or "block" will determine what happens to the message. This will not cover all combinations, but will be enough in practically all real-life situations.