apsun / NekoSMS

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

Priority support. #54

Open ghost opened 6 years ago

ghost commented 6 years ago

I think it would be better to add a priority level support, including blacklist and whitelist.

A concrete example: Blacklist A:A Whitelist B:B Blacklist C:C

Priority level: A>B>C

Message contains "C" will be intercepted by default. But if the message contains "B" (without "A") it will be allowed although it contains "C". Identically, message contains "A" & "B" will be intercepted.

apsun commented 6 years ago

I thought about this a long time ago, I believe the main reason I never implemented it was because I suck at UI and didn't want to implement rearranging list items. As you can see I'm super lazy.

For your particular use case, you can probably just use a negative lookahead regex.

ghost commented 6 years ago

I see. Anyway, thanks for your help.

apsun commented 6 years ago

I do want to implement ordering, but probably won't have the time to do it myself anytime soon. Work is hard :-/