From fa226a7a10ba95f8d8a7ff92dbfc44f6404d9d4d Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 2 Nov 2009 14:36:33 -0800 Subject: Drop date.c file, (use identical function from GMime instead). We had originally copied this function in at a time when notmuch wasn't actually depending on the GMime library. Now that it does, we might as well call the function that exists there rather than having a private copy of it. --- message.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'message.cc') diff --git a/message.cc b/message.cc index 2a90014..154efa0 100644 --- a/message.cc +++ b/message.cc @@ -21,6 +21,8 @@ #include "notmuch-private.h" #include "database-private.h" +#include + #include struct _notmuch_message { @@ -428,7 +430,7 @@ _notmuch_message_set_date (notmuch_message_t *message, { time_t time_value; - time_value = notmuch_parse_date (date, NULL); + time_value = g_mime_utils_header_decode_date (date, NULL); message->doc.add_value (NOTMUCH_VALUE_TIMESTAMP, Xapian::sortable_serialise (time_value)); -- cgit v1.2.3