[balsa/gmime3: 23/51] g_mime_object_set_header() has an extra argument
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 23/51] g_mime_object_set_header() has an extra argument
- Date: Sat, 1 Feb 2020 19:47:58 +0000 (UTC)
commit 6c4d1f2d85cd1139001195ce2ec19ab765a168e4
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Nov 22 09:57:06 2019 -0800
g_mime_object_set_header() has an extra argument
for passing a charset, which we always pass as NULL.
libbalsa/mailbox_mbox.c | 4 ++--
libbalsa/send.c | 14 +++++++-------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index 01cdd6ae2..c907d936e 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -1807,10 +1807,10 @@ static void update_message_status_headers(GMimeMessage *message,
/* Create headers with spaces in place of flags, if necessary, so we
* can later update them in place. */
lbm_mbox_status_hdr(flags, 2, new_header);
- g_mime_object_set_header(GMIME_OBJECT(message), "Status", new_header->str);
+ g_mime_object_set_header(GMIME_OBJECT(message), "Status", new_header->str, NULL);
g_string_truncate(new_header, 0);
lbm_mbox_x_status_hdr(flags, 3, new_header);
- g_mime_object_set_header(GMIME_OBJECT(message), "X-Status", new_header->str);
+ g_mime_object_set_header(GMIME_OBJECT(message), "X-Status", new_header->str, NULL);
g_string_free(new_header, TRUE);
}
diff --git a/libbalsa/send.c b/libbalsa/send.c
index 15c7f287c..9bfbe8e95 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -440,12 +440,12 @@ lbs_message_queue_real(LibBalsaMessage *message,
mime_msg = libbalsa_message_get_mime_message(message);
if (fccbox != NULL) {
g_mime_object_set_header(GMIME_OBJECT(mime_msg), "X-Balsa-Fcc",
- libbalsa_mailbox_get_url(fccbox));
+ libbalsa_mailbox_get_url(fccbox), NULL);
}
g_mime_object_set_header(GMIME_OBJECT(mime_msg), "X-Balsa-DSN",
- libbalsa_message_get_request_dsn(message) ? "1" : "0");
+ libbalsa_message_get_request_dsn(message) ? "1" : "0", NULL);
g_mime_object_set_header(GMIME_OBJECT(mime_msg), "X-Balsa-SmtpServer",
- libbalsa_smtp_server_get_name(smtp_server));
+ libbalsa_smtp_server_get_name(smtp_server), NULL);
big_message = libbalsa_smtp_server_get_big_message(smtp_server);
if (big_message > 0) {
@@ -1166,14 +1166,14 @@ message_add_references(LibBalsaMessage *message,
}
g_string_append_printf(str, "<%s>", (gchar *) list->data);
} while ((list = list->next) != NULL);
- g_mime_object_set_header(GMIME_OBJECT(msg), "References", str->str);
+ g_mime_object_set_header(GMIME_OBJECT(msg), "References", str->str, NULL);
g_string_free(str, TRUE);
}
list = libbalsa_message_get_in_reply_to(message);
if (list != NULL) {
/* There's no specific header function for In-Reply-To */
- g_mime_object_set_header(GMIME_OBJECT(msg), "In-Reply-To", list->data);
+ g_mime_object_set_header(GMIME_OBJECT(msg), "In-Reply-To", list->data, NULL);
}
}
@@ -1595,8 +1595,8 @@ libbalsa_message_postpone(LibBalsaMessage *message,
gint i;
for (i = 0; extra_headers[i] && extra_headers[i + 1]; i += 2) {
- g_mime_object_set_header(GMIME_OBJECT(libbalsa_message_get_mime_message(message)),
extra_headers[i],
- extra_headers[i + 1]);
+ g_mime_object_set_header(GMIME_OBJECT(libbalsa_message_get_mime_message(message)),
+ extra_headers[i], extra_headers[i + 1], NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]