apsun / NekoSMS

A pattern-based text message blocker for Android.
GNU General Public License v3.0
426 stars 44 forks source link

Add "allow" option to filters, make filters ordered #2

Closed apsun closed 8 years ago

apsun commented 9 years ago

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.

apsun commented 8 years ago

Merged into #20.