X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=d11dfaf3dc7245b6b0f7988f5056144e318d8dd4;hb=ac7f84306474dbecea8f6fee2ef2e8d71cc950f7;hp=98f101e6e617a04e9b6c26213f7e35a03dd5c0c3;hpb=69dc421ab3355930f23ec6aa47e7e936cbfafb97;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 98f101e6..d11dfaf3 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -81,13 +81,17 @@ typedef struct { * STRING is the name of a file within that * directory for this mail message. * - * A mail document also has two values: + * A mail document also has four values: * * TIMESTAMP: The time_t value corresponding to the message's * Date header. * * MESSAGE_ID: The unique ID of the mail mess (see "id" above) * + * FROM: The value of the "From" header + * + * SUBJECT: The value of the "Subject" header + * * In addition, terms from the content of the message are added with * "from", "to", "attachment", and "subject" prefixes for use by the * user in searching. Similarly, terms from the path of the mail @@ -1447,7 +1451,7 @@ _notmuch_database_link_message_to_parents (notmuch_database_t *notmuch, keys = g_hash_table_get_keys (parents); for (l = keys; l; l = l->next) { char *parent_message_id; - const char *parent_thread_id; + const char *parent_thread_id = NULL; parent_message_id = (char *) l->data;