mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
1479b99b50
commit
dceb501e44
1 changed files with 1 additions and 3 deletions
|
@ -385,12 +385,10 @@ main (int argc, char **argv)
|
||||||
add_term (doc, "label", "inbox");
|
add_term (doc, "label", "inbox");
|
||||||
add_term (doc, "label", "unread");
|
add_term (doc, "label", "unread");
|
||||||
add_term (doc, "type", "mail");
|
add_term (doc, "type", "mail");
|
||||||
|
add_term (doc, "source_id", "1");
|
||||||
|
|
||||||
value = g_mime_message_get_message_id (message);
|
value = g_mime_message_get_message_id (message);
|
||||||
add_term (doc, "msgid", value);
|
add_term (doc, "msgid", value);
|
||||||
|
|
||||||
add_term (doc, "source_id", "1");
|
|
||||||
|
|
||||||
add_term (doc, "thread", value);
|
add_term (doc, "thread", value);
|
||||||
|
|
||||||
doc.add_value (NOTMUCH_VALUE_MESSAGE_ID, value);
|
doc.add_value (NOTMUCH_VALUE_MESSAGE_ID, value);
|
||||||
|
|
Loading…
Reference in a new issue