Add support for blocking keywords for incoming messages

This adds support for filtering incoming messages based on
message body by checking if it contains any of the blocked keywords
(case insensitive). Regex and patterns are not supported at the moment.

NOTE: This does not currently support MMS, only SMS.

This closes #33
This commit is contained in:
Ensar Sarajčić 2023-07-10 14:11:41 +02:00
parent 9942fb788a
commit 674a467694
61 changed files with 752 additions and 21 deletions

View file

@ -68,6 +68,11 @@
<item quantity="other">%d poruka</item>
</plurals>
<!-- Settings -->
<string name="keyword">Riječ</string>
<string name="blocked_keywords">Blokirane riječi</string>
<string name="manage_blocked_keywords">Upravljanje blokiranim riječima</string>
<string name="not_blocking_keywords">Ne blokirate niti jednu riječ. Ovdje možete dodati riječi kako biste blokirali poruke koje ih sadrže.</string>
<string name="add_a_blocked_keyword">Dodaj blokiranu riječ</string>
<string name="lock_screen_visibility">Zaključaj vidljivost ekranskih obavijesti</string>
<string name="sender_and_message">Pošiljatelj u poruka</string>
<string name="sender_only">Samo pošiljatelj</string>
@ -110,4 +115,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>