diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-06 09:34:21 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-06 09:34:21 -0800 |
commit | 1eec45659b1f647c862667b045eb27a691d0f11e (patch) | |
tree | bc379d180d211b0617f16e2d3959b0633ef94252 /database.cc | |
parent | 73ee42be369673d8788f1f8eafdc969d56ce9c4f (diff) |
add_message: Start storing In-Reply-To information in the database.
We'll use this eventually for properly nesting messages in the output
of "notmuch show", etc.
Diffstat (limited to 'database.cc')
-rw-r--r-- | database.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/database.cc b/database.cc index 60406283..97043e99 100644 --- a/database.cc +++ b/database.cc @@ -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) { |