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 messaggi</item>
</plurals>
<!-- Settings -->
<string name="keyword">Keyword</string>
<string name="blocked_keywords">Blocked keywords</string>
<string name="manage_blocked_keywords">Manage blocked keywords</string>
<string name="not_blocking_keywords">You are not blocking any keywords. You may add keywords here to block all messages containing them.</string>
<string name="add_a_blocked_keyword">Add a blocked keyword</string>
<string name="lock_screen_visibility">Visibilità schermata di blocco</string>
<string name="sender_and_message">Mittente e messaggio</string>
<string name="sender_only">Solo mittente</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>