From dceb501e44b5279df6df76b19688c156256b75c2 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 13 Oct 2009 18:16:43 -0700 Subject: [PATCH] Minor code re-ordering for clarity. Pull the "constant" source_id value out from among several calls that set a value based on the Message ID. --- notmuch-index-message.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc index 3e81ecde..6f0b21e7 100644 --- a/notmuch-index-message.cc +++ b/notmuch-index-message.cc @@ -385,12 +385,10 @@ main (int argc, char **argv) add_term (doc, "label", "inbox"); add_term (doc, "label", "unread"); add_term (doc, "type", "mail"); + add_term (doc, "source_id", "1"); value = g_mime_message_get_message_id (message); add_term (doc, "msgid", value); - - add_term (doc, "source_id", "1"); - add_term (doc, "thread", value); doc.add_value (NOTMUCH_VALUE_MESSAGE_ID, value); -- 2.26.2