mirror of https://github.com/M66B/FairEmail.git
Workaround invalid priorities
This commit is contained in:
parent
e754059dc9
commit
5593ae7269
|
@ -482,6 +482,12 @@ public class MessageHelper {
|
|||
if (header == null)
|
||||
header = imessage.getHeader("X-MSMail-Priority", null);
|
||||
|
||||
if (header != null) {
|
||||
int sp = header.indexOf(" ");
|
||||
if (sp >= 0)
|
||||
header = header.substring(0, sp); // "2 (High)"
|
||||
}
|
||||
|
||||
if ("high".equalsIgnoreCase(header) || "urgent".equalsIgnoreCase(header))
|
||||
priority = EntityMessage.PRIORITIY_HIGH;
|
||||
else if ("normal".equalsIgnoreCase(header) || "medium".equalsIgnoreCase(header))
|
||||
|
|
Loading…
Reference in New Issue