X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=database.cc;h=4524016b37aecb1d0ffbacfbe72d4b5c8b03b94d;hb=39429339624f8d29db8f523d52a81c70001ebebe;hp=3e00aa59754c0f69b610cf369441020a057dcb55;hpb=a1135f0b7e67db7056a4ef02d61b8ad0ec46e88b;p=notmuch diff --git a/database.cc b/database.cc index 3e00aa59..4524016b 100644 --- a/database.cc +++ b/database.cc @@ -84,7 +84,7 @@ typedef struct { * * and has a single value: * - * TIMETAMPS: The time_t value from the user. + * TIMESTAMP: The time_t value from the user. */ /* With these prefix values we follow the conventions published here: @@ -105,6 +105,7 @@ typedef struct { prefix_t BOOLEAN_PREFIX_INTERNAL[] = { { "type", "T" }, { "ref", "XREFERENCE" }, + { "replyto", "XREPLYTO" }, { "timestamp", "XTIMESTAMP" }, { "contact", "XCONTACT" } }; @@ -732,6 +733,8 @@ _notmuch_database_link_message_to_parents (notmuch_database_t *notmuch, in_reply_to = notmuch_message_file_get_header (message_file, "in-reply-to"); parse_references (message, parents, in_reply_to); + _notmuch_message_add_term (message, "replyto", + parse_message_id (message, in_reply_to, NULL)); keys = g_hash_table_get_keys (parents); for (l = keys; l; l = l->next) { @@ -857,7 +860,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, notmuch_message_t **message_ret) { notmuch_message_file_t *message_file; - notmuch_message_t *message; + notmuch_message_t *message = NULL; notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS; notmuch_private_status_t private_status;