aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-13 18:16:43 -0700
committerCarl Worth <cworth@cworth.org>2009-10-13 21:15:00 -0700
commitdceb501e44b5279df6df76b19688c156256b75c2 (patch)
tree254f0e8dbe1dc0369fc6767476e80f12a3b9b900
parent1479b99b50c3a8f75cd301787cf663fd36c2345f (diff)
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.
-rw-r--r--notmuch-index-message.cc4
1 files changed, 1 insertions, 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);