mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-29 06:04:11 +01:00
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.
This commit is contained in:
parent
73ee42be36
commit
1eec45659b
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,7 @@ typedef struct {
|
||||||
prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
|
prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
|
||||||
{ "type", "T" },
|
{ "type", "T" },
|
||||||
{ "ref", "XREFERENCE" },
|
{ "ref", "XREFERENCE" },
|
||||||
|
{ "replyto", "XREPLYTO" },
|
||||||
{ "timestamp", "XTIMESTAMP" },
|
{ "timestamp", "XTIMESTAMP" },
|
||||||
{ "contact", "XCONTACT" }
|
{ "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");
|
in_reply_to = notmuch_message_file_get_header (message_file, "in-reply-to");
|
||||||
parse_references (message, parents, 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);
|
keys = g_hash_table_get_keys (parents);
|
||||||
for (l = keys; l; l = l->next) {
|
for (l = keys; l; l = l->next) {
|
||||||
|
|
Loading…
Reference in a new issue