mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-16 23:23:11 +01:00
Change all occurrences of "msgid" to "id".
What's good for the user is good for the internals.
This commit is contained in:
parent
36809b5dfb
commit
2a9b4fce7c
2 changed files with 3 additions and 4 deletions
|
@ -44,7 +44,6 @@ typedef struct {
|
||||||
prefix_t BOOLEAN_PREFIX[] = {
|
prefix_t BOOLEAN_PREFIX[] = {
|
||||||
{ "type", "K" },
|
{ "type", "K" },
|
||||||
{ "tag", "L" },
|
{ "tag", "L" },
|
||||||
{ "msgid", "Q" },
|
|
||||||
{ "id", "Q" },
|
{ "id", "Q" },
|
||||||
{ "thread", "H" },
|
{ "thread", "H" },
|
||||||
{ "ref", "R" },
|
{ "ref", "R" },
|
||||||
|
@ -207,7 +206,7 @@ notmuch_database_find_message (notmuch_database_t *notmuch,
|
||||||
notmuch_private_status_t status;
|
notmuch_private_status_t status;
|
||||||
unsigned int doc_id;
|
unsigned int doc_id;
|
||||||
|
|
||||||
status = find_unique_doc_id (notmuch, "msgid", message_id, &doc_id);
|
status = find_unique_doc_id (notmuch, "id", message_id, &doc_id);
|
||||||
|
|
||||||
if (status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND)
|
if (status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -140,7 +140,7 @@ _notmuch_message_create_for_message_id (const void *talloc_owner,
|
||||||
return talloc_steal (talloc_owner, message);
|
return talloc_steal (talloc_owner, message);
|
||||||
|
|
||||||
term = talloc_asprintf (NULL, "%s%s",
|
term = talloc_asprintf (NULL, "%s%s",
|
||||||
_find_prefix ("msgid"), message_id);
|
_find_prefix ("id"), message_id);
|
||||||
doc.add_term (term);
|
doc.add_term (term);
|
||||||
talloc_free (term);
|
talloc_free (term);
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ notmuch_message_get_message_id (notmuch_message_t *message)
|
||||||
return message->message_id;
|
return message->message_id;
|
||||||
|
|
||||||
i = message->doc.termlist_begin ();
|
i = message->doc.termlist_begin ();
|
||||||
i.skip_to (_find_prefix ("msgid"));
|
i.skip_to (_find_prefix ("id"));
|
||||||
|
|
||||||
if (i == message->doc.termlist_end ()) {
|
if (i == message->doc.termlist_end ()) {
|
||||||
fprintf (stderr, "Internal error: Message with document ID of %d has no message ID.\n",
|
fprintf (stderr, "Internal error: Message with document ID of %d has no message ID.\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue