aboutsummaryrefslogtreecommitdiffhomepage
path: root/database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/database.cc b/database.cc
index 2f3959fa..efc38762 100644
--- a/database.cc
+++ b/database.cc
@@ -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 ();