From: Carl Worth Date: Wed, 14 Oct 2009 01:16:43 +0000 (-0700) Subject: Minor code re-ordering for clarity. X-Git-Tag: 0.1~882 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=dceb501e44b5279df6df76b19688c156256b75c2 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. --- 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);