diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-02 14:36:33 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-02 14:36:33 -0800 |
commit | fa226a7a10ba95f8d8a7ff92dbfc44f6404d9d4d (patch) | |
tree | d0b03b588f6a1f298e07a8de82528ca1dce058da /message.cc | |
parent | 8ff934803cb2a0ca4f862aa5e0dd6f8908b78ffa (diff) |
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.
Diffstat (limited to 'message.cc')
-rw-r--r-- | message.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,6 +21,8 @@ #include "notmuch-private.h" #include "database-private.h" +#include <gmime/gmime.h> + #include <xapian.h> 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)); |