[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: Sat, 1 Feb 2020 19:48:43 +0000 (UTC)
commit d297882490cda6b3ca983fb0bf22ea37a22b2dc7
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 315d68255..94de6270c 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -1231,7 +1231,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]