X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=database.cc;h=efc3876205b79de6469373533988af12ca6f354e;hp=6ac04f74ee4f4dbbd19908f3d82c47c554458d2d;hb=45f0d7bcab72ff6b8375804d3e518f961bd9a96f;hpb=fa562fa22b214a7d253e80c62d4f4c97138a6155 diff --git a/database.cc b/database.cc index 6ac04f74..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 ();