X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessage.cc;h=da4a102c3fc1c10f171d837bffa7707b416f81b4;hp=b87506ac82b79128145d0f4fe59ef958f67d93ca;hb=206938ec9b4ddee28793f2f052a5314d6d7ab08d;hpb=f3c1eebfaf8526129ae6946cbcd44a3c602563d6 diff --git a/lib/message.cc b/lib/message.cc index b87506ac..da4a102c 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -711,9 +711,13 @@ notmuch_tags_t * notmuch_message_get_tags (notmuch_message_t *message) { Xapian::TermIterator i, end; + notmuch_string_list_t *tags; i = message->doc.termlist_begin(); end = message->doc.termlist_end(); - return _notmuch_convert_tags(message, i, end); + tags = _notmuch_database_get_terms_with_prefix (message, i, end, + _find_prefix ("tag")); + _notmuch_string_list_sort (tags); + return _notmuch_tags_create (message, tags); } const char *