Workaround invalid priorities

This commit is contained in:
M66B 2019-10-01 09:36:08 +02:00
parent e754059dc9
commit 5593ae7269
1 changed files with 6 additions and 0 deletions

View File

@ -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))