mirror of https://github.com/M66B/FairEmail.git
Ignore unknown priorities
This commit is contained in:
parent
7917682e08
commit
ed28127d9c
|
@ -1184,8 +1184,6 @@ public class MessageHelper {
|
|||
else if ("normal".equalsIgnoreCase(header) ||
|
||||
"medium".equalsIgnoreCase(header) ||
|
||||
"med".equalsIgnoreCase(header) ||
|
||||
"a".equalsIgnoreCase(header) ||
|
||||
"aplus".equalsIgnoreCase(header) ||
|
||||
"none".equalsIgnoreCase(header))
|
||||
priority = EntityMessage.PRIORITIY_NORMAL;
|
||||
else if ("low".equalsIgnoreCase(header) ||
|
||||
|
@ -1194,9 +1192,13 @@ public class MessageHelper {
|
|||
"marketing".equalsIgnoreCase(header) ||
|
||||
"bulk".equalsIgnoreCase(header) ||
|
||||
"batch".equalsIgnoreCase(header) ||
|
||||
"b".equalsIgnoreCase(header) ||
|
||||
"mass".equalsIgnoreCase(header))
|
||||
priority = EntityMessage.PRIORITIY_LOW;
|
||||
else if ("a".equalsIgnoreCase(header) ||
|
||||
"b".equalsIgnoreCase(header) ||
|
||||
"c".equalsIgnoreCase(header) ||
|
||||
"aplus".equalsIgnoreCase(header))
|
||||
; // Ignore unknown
|
||||
else if (!TextUtils.isEmpty(header))
|
||||
try {
|
||||
priority = Integer.parseInt(header);
|
||||
|
|
Loading…
Reference in New Issue