With all the de-glib-ification out of the way, we can now use it
to allow for date-based sorting of Xapian search results.
%.o: %.c
$(CC) -c $(CFLAGS) $(MYCFLAGS) $^ -o $@
-notmuch: notmuch.o database.o message.o xutil.o
+notmuch: notmuch.o database.o date.o message.o xutil.o
$(CC) $(MYLDFLAGS) $^ -o $@
notmuch-index-message: notmuch-index-message.cc
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) {
#include <time.h>
+#include <glib.h> /* For g_ascii_strncasecmp only. */
+
#ifndef FALSE
#define FALSE 0
#endif