X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=database.cc;h=efc3876205b79de6469373533988af12ca6f354e;hp=7ea1f4168fb42bea820e147a0bfed14654258364;hb=45f0d7bcab72ff6b8375804d3e518f961bd9a96f;hpb=0e777a8f800af062aba39a95a003f3e1d8f33793 diff --git a/database.cc b/database.cc index 7ea1f416..efc38762 100644 --- a/database.cc +++ b/database.cc @@ -24,7 +24,7 @@ #include -#include +#include /* g_strdup_printf, g_free, GHashTable */ using namespace std; @@ -486,6 +486,13 @@ notmuch_database_add_message (notmuch_database_t *notmuch, message = notmuch_message_open (filename); + notmuch_message_restrict_headers (message, + "references", + "in-reply-to", + "message-id", + "date", + (char *) NULL); + try { doc = Xapian::Document (); @@ -554,13 +561,11 @@ notmuch_database_add_message (notmuch_database_t *notmuch, free (message_id); -/* date = notmuch_message_get_header (message, "date"); time_value = notmuch_parse_date (date, NULL); doc.add_value (NOTMUCH_VALUE_DATE, Xapian::sortable_serialise (time_value)); -*/ db->add_document (doc); } catch (const Xapian::Error &error) {