[balsa/gmime3: 16/55] g_mime_filter_crlf_new() is no more
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 16/55] g_mime_filter_crlf_new() is no more
- Date: Wed, 18 Mar 2020 00:09:35 +0000 (UTC)
commit 85742b756f2d374e333680c9edf9613fcf81d3f3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Nov 21 07:32:01 2019 -0800
g_mime_filter_crlf_new() is no more
and is replaced by g_mime_filter_unix2dos() for CRLF filtering,
and g_mime_filter_smtp() for dot-stuffing.
libbalsa/mailbox_imap.c | 6 ++----
libbalsa/mailbox_maildir.c | 4 +---
libbalsa/mailbox_mbox.c | 3 +--
libbalsa/mailbox_mh.c | 3 +--
libbalsa/message.c | 4 +---
libbalsa/send.c | 9 +++++++--
6 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index bc0763846..83a8d0dc1 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2166,7 +2166,7 @@ get_struct_from_cache(LibBalsaMailbox *mailbox, LibBalsaMessage *message,
fstream = g_mime_stream_filter_new(stream);
g_object_unref(stream);
- filter = g_mime_filter_crlf_new(FALSE, FALSE);
+ filter = g_mime_filter_unix2dos(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(fstream), filter);
g_object_unref(filter);
@@ -2723,9 +2723,7 @@ libbalsa_mailbox_imap_add_messages(LibBalsaMailbox * mailbox,
tmpstream = g_mime_stream_filter_new(stream);
- crlffilter =
- g_mime_filter_crlf_new(TRUE,
- FALSE);
+ crlffilter = g_mime_filter_unix2dos(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(tmpstream), crlffilter);
g_object_unref(crlffilter);
diff --git a/libbalsa/mailbox_maildir.c b/libbalsa/mailbox_maildir.c
index 0733f7e81..c8f3cccd1 100644
--- a/libbalsa/mailbox_maildir.c
+++ b/libbalsa/mailbox_maildir.c
@@ -894,9 +894,7 @@ lbm_maildir_add_message(LibBalsaMailboxLocal * local,
out_stream = g_mime_stream_fs_new(fd);
in_stream = g_mime_stream_filter_new(stream);
- crlffilter =
- g_mime_filter_crlf_new(FALSE,
- FALSE);
+ crlffilter = g_mime_filter_unix2dos(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(in_stream), crlffilter);
g_object_unref(crlffilter);
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index 952a6c328..5c7fe37ae 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -1836,8 +1836,7 @@ lbm_mbox_armored_stream(GMimeStream * stream)
fstream = g_mime_stream_filter_new(stream);
- filter = g_mime_filter_crlf_new(FALSE,
- FALSE);
+ filter = g_mime_filter_unix2dos(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(fstream), filter);
g_object_unref(filter);
diff --git a/libbalsa/mailbox_mh.c b/libbalsa/mailbox_mh.c
index 5a2cd9745..e65d44590 100644
--- a/libbalsa/mailbox_mh.c
+++ b/libbalsa/mailbox_mh.c
@@ -1074,8 +1074,7 @@ lbm_mh_add_message(LibBalsaMailboxLocal * local,
}
out_stream = g_mime_stream_fs_new(fd);
- crlffilter = g_mime_filter_crlf_new(FALSE,
- FALSE);
+ crlffilter = g_mime_filter_unix2dos(FALSE);
in_stream = g_mime_stream_filter_new(stream);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(in_stream), crlffilter);
g_object_unref(crlffilter);
diff --git a/libbalsa/message.c b/libbalsa/message.c
index 9453464e5..7a9428356 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -1358,9 +1358,7 @@ libbalsa_message_load_envelope_from_stream(LibBalsaMessage *message,
gmime_stream_filter =
g_mime_stream_filter_new(gmime_stream);
- gmime_filter_crlf =
- g_mime_filter_crlf_new(FALSE,
- FALSE);
+ gmime_filter_crlf = g_mime_filter_unix2dos(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(gmime_stream_filter),
gmime_filter_crlf);
g_object_unref(gmime_filter_crlf);
diff --git a/libbalsa/send.c b/libbalsa/send.c
index d357868a9..99c6e1e17 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1742,8 +1742,13 @@ libbalsa_fill_msg_queue_item_from_queu(LibBalsaMessage *message,
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
g_object_unref(filter);
- /* add CRLF, encode dot */
- filter = g_mime_filter_crlf_new(TRUE, TRUE);
+ /* add CRLF */
+ filter = g_mime_filter_unix2dos_new(TRUE);
+ g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
+ g_object_unref(filter);
+
+ /* encode dot */
+ filter = g_mime_filter_smtp_data_new();
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
g_object_unref(filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]