X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=message.cc;h=78b6fed6bb2d8725e52f3637088fd513f5e0a748;hb=0aa355cc8fb46ae049052a913c2f2ab89ccba23c;hp=21befc20ab0299936b78d374f1cdcd89209bccb6;hpb=e37b7cc2da75c9a43e31c1fa6d29f1177445c1d8;p=notmuch diff --git a/message.cc b/message.cc index 21befc20..78b6fed6 100644 --- a/message.cc +++ b/message.cc @@ -140,7 +140,7 @@ _notmuch_message_create_for_message_id (const void *talloc_owner, return talloc_steal (talloc_owner, message); term = talloc_asprintf (NULL, "%s%s", - _find_prefix ("msgid"), message_id); + _find_prefix ("id"), message_id); doc.add_term (term); talloc_free (term); @@ -160,7 +160,7 @@ notmuch_message_get_message_id (notmuch_message_t *message) return message->message_id; i = message->doc.termlist_begin (); - i.skip_to (_find_prefix ("msgid")); + i.skip_to (_find_prefix ("id")); if (i == message->doc.termlist_end ()) { fprintf (stderr, "Internal error: Message with document ID of %d has no message ID.\n",