Label classified messages

This commit is contained in:
M66B
2021-04-28 08:09:45 +02:00
parent 369a6f0a23
commit 214ee5b52b
3 changed files with 6 additions and 4 deletions

View File

@@ -282,10 +282,10 @@ public class EntityMessage implements Serializable {
return addresses.toArray(new Address[0]);
}
boolean isForwarded() {
boolean hasKeyword(@NonNull String value) {
if (keywords != null)
for (String keyword : keywords)
if ("$Forwarded".equalsIgnoreCase(keyword))
if (value.equalsIgnoreCase(keyword))
return true;
return false;
}