X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=message.cc;h=b304a22e73c2c3051665136abc3f3e25ff00d073;hp=65e5ad78a269b6da86ef5a3b7c289871d8096712;hb=a5e619f11ffe034cfe2dc13207961ed6db5ab5ba;hpb=ce5d78296251b529838df0dbd4dc3b9a90030924 diff --git a/message.cc b/message.cc index 65e5ad78..b304a22e 100644 --- a/message.cc +++ b/message.cc @@ -82,7 +82,8 @@ prefix_t BOOLEAN_PREFIX[] = { { "attachment_extension", "O" }, { "msgid", "Q" }, { "thread", "H" }, - { "ref", "R" } + { "ref", "R" }, + { "timestamp", "KTS" }, }; const char * @@ -98,6 +99,9 @@ _find_prefix (const char *name) if (strcmp (name, BOOLEAN_PREFIX[i].name) == 0) return BOOLEAN_PREFIX[i].prefix; + fprintf (stderr, "Internal error: No prefix exists for '%s'\n", name); + exit (1); + return ""; } @@ -522,7 +526,7 @@ notmuch_tags_has_more (notmuch_tags_t *tags) return FALSE; s = *tags->iterator; - if (s.size () && s[0] == 'L') + if (! s.empty () && s[0] == 'L') return TRUE; else return FALSE;