[balsa/gmime3: 32/51] New API for g_mime_utils_header_decode_date()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 32/51] New API for g_mime_utils_header_decode_date()
- Date: Tue, 3 Mar 2020 19:51:06 +0000 (UTC)
commit 114822862fa21f88b2e1849babbb595c00ff3e8d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Nov 22 14:54:10 2019 -0800
New API for g_mime_utils_header_decode_date()
modified: libbalsa/message.c
libbalsa/message.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libbalsa/message.c b/libbalsa/message.c
index 7b2a5e30e..66edceb25 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -1253,7 +1253,11 @@ lbmsg_set_header(LibBalsaMessage *message,
libbalsa_message_set_subject_from_header(message, value);
#endif /* MESSAGE_COPY_CONTENT */
} else if (g_ascii_strcasecmp(name, "Date") == 0) {
- message->headers->date = g_mime_utils_header_decode_date(value, NULL);
+ GDateTime *datetime;
+
+ datetime = g_mime_utils_header_decode_date(value);
+ message->headers->date = g_date_time_to_unix(datetime);
+ g_date_time_unref(datetime);
} else if ((message->headers->from == NULL) &&
(g_ascii_strcasecmp(name, "From") == 0)) {
message->headers->from = internet_address_list_parse(libbalsa_parser_options(), value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]