]> git.notmuchmail.org Git - notmuch/commitdiff
Minor code re-ordering for clarity.
authorCarl Worth <cworth@cworth.org>
Wed, 14 Oct 2009 01:16:43 +0000 (18:16 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 14 Oct 2009 04:15:00 +0000 (21:15 -0700)
Pull the "constant" source_id value out from among several calls
that set a value based on the Message ID.

notmuch-index-message.cc

index 3e81ecde9e24ada28ce5f4883818b1106b1947c3..6f0b21e73b7dd2175a0ace0e6ae220745bdcaccc 100644 (file)
@@ -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);