]> git.notmuchmail.org Git - notmuch/blobdiff - lib/messages.c
lib/thread: change _resolve_thread_relationships to use depths
[notmuch] / lib / messages.c
index ba8a9777b0842e4bdf16b5bd879b1bd4c27b04b5..04fa19f8ec16e4c140e506e1f39f084ba47e09dc 100644 (file)
@@ -110,6 +110,18 @@ notmuch_messages_valid (notmuch_messages_t *messages)
     return (messages->iterator != NULL);
 }
 
+bool
+_notmuch_messages_has_next (notmuch_messages_t *messages)
+{
+    if (! notmuch_messages_valid (messages))
+       return false;
+
+    if (! messages->is_of_list_type)
+       INTERNAL_ERROR("_notmuch_messages_has_next not implimented for msets");
+
+    return (messages->iterator->next != NULL);
+}
+
 notmuch_message_t *
 notmuch_messages_get (notmuch_messages_t *messages)
 {