Default color/title for $Phishing keyword

This commit is contained in:
M66B 2024-04-29 17:56:48 +02:00
parent 600f8c0b00
commit d9b06148b0
3 changed files with 5 additions and 0 deletions

View File

@ -243,6 +243,7 @@ public class MessageHelper {
static final String FLAG_COMPLAINT = "Complaint";
static final String FLAG_LOW_IMPORTANCE = "$LowImportance";
static final String FLAG_HIGH_IMPORTANCE = "$HighImportance";
static final String FLAG_PHISHING = "$Phishing"; // Gmail
// https://www.iana.org/assignments/imap-jmap-keywords/imap-jmap-keywords.xhtml
// Not black listed: Gmail $Phishing

View File

@ -168,6 +168,8 @@ public class TupleKeyword {
return context.getString(R.string.title_keyword_not_delivered);
case MessageHelper.FLAG_COMPLAINT:
return context.getString(R.string.title_keyword_complaint);
case MessageHelper.FLAG_PHISHING:
return context.getString(R.string.title_keyword_phishing);
default:
return keyword;
}
@ -192,6 +194,7 @@ public class TupleKeyword {
case MessageHelper.FLAG_NOT_DISPLAYED:
case MessageHelper.FLAG_NOT_DELIVERED:
case MessageHelper.FLAG_COMPLAINT:
case MessageHelper.FLAG_PHISHING:
return Helper.resolveColor(context, androidx.appcompat.R.attr.colorError);
default:

View File

@ -2450,6 +2450,7 @@
<string name="title_keyword_not_displayed">Not displayed</string>
<string name="title_keyword_not_delivered">Not delivered</string>
<string name="title_keyword_complaint">Complaint</string>
<string name="title_keyword_phishing">Phishing</string>
<plurals name="title_accessibility_messages">
<item quantity="one">%1$d message</item>