#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) {