#include <xapian.h>
-#include <glib.h>
+#include <glib.h> /* g_strdup_printf, g_free, GHashTable */
using namespace std;
message = notmuch_message_open (filename);
+ notmuch_message_restrict_headers (message,
+ "references",
+ "in-reply-to",
+ "message-id",
+ "date",
+ (char *) NULL);
+
try {
doc = Xapian::Document ();
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) {