mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Workaround invalid priorities
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user