* mu-msg-file.c: search priority headers in faster order

- some message statistics showed the most common header to signify message
    priority; check that one first
This commit is contained in:
djcb
2012-01-13 00:47:18 +02:00
parent b7745f2bf9
commit 6732fb46af

View File

@ -360,13 +360,14 @@ get_prio_header_field (MuMsgFile *self)
obj = GMIME_OBJECT(self->_mime_msg);
str = g_mime_object_get_header (obj, "Precedence");
if (!str)
str = g_mime_object_get_header (obj, "X-Priority");
if (!str)
str = g_mime_object_get_header (obj, "X-MSMail-Priority");
if (!str)
str = g_mime_object_get_header (obj, "Importance");
if (!str)
str = g_mime_object_get_header (obj, "Precedence");
/* NOTE: "X-MSMail-Priority" is never seen without "X-Priority" */
/* if (!str) */
/* str = g_mime_object_get_header (obj, "X-MSMail-Priority"); */
if (str)
return (to_lower(g_strdup(str)));
else