Adjusted post-output:
[infodrom/newmail] / mbox.c
diff --git a/mbox.c b/mbox.c
index bb9848b..71944ad 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -103,7 +103,9 @@ int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
 #endif
        else if (strncasecmp(buf, "Subject: ", 9) == 0)
          stringcopy(subject, buf+9, sizeof(subject));
-       else if (strncasecmp(buf, "Priority: ", 10) == 0)
+       else if (strncasecmp(buf, "Priority: urgent", 16) == 0 && buf[16] == '\0')
+         priority = 1;
+       else if (strncasecmp(buf, "X-Priority: 1", 13) == 0 && buf[13] == '\0')
          priority = 1;
       }
     } else if (strncasecmp(buf, "From ", 5) == 0) {