mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Refactoring
This commit is contained in:
parent
46f7fde754
commit
83cc64b055
1 changed files with 8 additions and 4 deletions
|
@ -283,10 +283,14 @@ public class EntityMessage implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean hasKeyword(@NonNull String value) {
|
boolean hasKeyword(@NonNull String value) {
|
||||||
if (keywords != null)
|
// https://tools.ietf.org/html/rfc5788
|
||||||
for (String keyword : keywords)
|
if (keywords == null)
|
||||||
if (value.equalsIgnoreCase(keyword))
|
return false;
|
||||||
return true;
|
|
||||||
|
for (String keyword : keywords)
|
||||||
|
if (value.equalsIgnoreCase(keyword))
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue