[balsa/gmime3: 43/49] Fix some porting to g_mime_filter_dos2unix_new()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 43/49] Fix some porting to g_mime_filter_dos2unix_new()
- Date: Tue, 18 Feb 2020 16:05:13 +0000 (UTC)
commit 985f96b61ef5b719ce7a0ff9033238e4fa29eacc
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Nov 25 13:46:18 2019 -0500
Fix some porting to g_mime_filter_dos2unix_new()
from g_mime_filter_crlf_new()--trying again, after reaading the manual!
modified: libbalsa/gmime-application-pkcs7.c
modified: libbalsa/gmime-multipart-crypt.c
modified: libbalsa/mailbox_imap.c
modified: libbalsa/send.c
libbalsa/gmime-application-pkcs7.c | 2 +-
libbalsa/gmime-multipart-crypt.c | 6 +++---
libbalsa/mailbox_imap.c | 4 ++--
libbalsa/send.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libbalsa/gmime-application-pkcs7.c b/libbalsa/gmime-application-pkcs7.c
index 9b26ac1f3..8d67bdbe7 100644
--- a/libbalsa/gmime-application-pkcs7.c
+++ b/libbalsa/gmime-application-pkcs7.c
@@ -148,7 +148,7 @@ g_mime_application_pkcs7_encrypt(GMimePart * pkcs7, GMimeObject * content,
stream = g_mime_stream_mem_new();
filtered_stream = g_mime_stream_filter_new(stream);
- crlf_filter = g_mime_filter_dos2unix_new(TRUE);
+ crlf_filter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filtered_stream),
crlf_filter);
g_object_unref(crlf_filter);
diff --git a/libbalsa/gmime-multipart-crypt.c b/libbalsa/gmime-multipart-crypt.c
index 24646bdfe..d9c8e2cc7 100644
--- a/libbalsa/gmime-multipart-crypt.c
+++ b/libbalsa/gmime-multipart-crypt.c
@@ -133,7 +133,7 @@ g_mime_gpgme_mps_sign(GMimeMultipartSigned * mps, GMimeObject * content,
/* Note: see rfc2015 or rfc3156, section 5.1 */
filtered = g_mime_stream_filter_new(stream);
- filter = g_mime_filter_dos2unix_new(TRUE);
+ filter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filtered), filter);
g_object_unref(filter);
@@ -278,7 +278,7 @@ g_mime_gpgme_mps_verify(GMimeMultipartSigned * mps, GError ** error)
filtered_stream = g_mime_stream_filter_new(stream);
/* Note: see rfc2015 or rfc3156, section 5.1 */
- crlf_filter = g_mime_filter_dos2unix_new(TRUE);
+ crlf_filter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filtered_stream),
crlf_filter);
g_object_unref(crlf_filter);
@@ -329,7 +329,7 @@ g_mime_gpgme_mpe_encrypt(GMimeMultipartEncrypted * mpe,
stream = g_mime_stream_mem_new();
filtered_stream = g_mime_stream_filter_new(stream);
- crlf_filter = g_mime_filter_dos2unix_new(TRUE);
+ crlf_filter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(filtered_stream),
crlf_filter);
g_object_unref(crlf_filter);
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index 035fb75ab..10df8fff8 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2723,7 +2723,7 @@ libbalsa_mailbox_imap_add_messages(LibBalsaMailbox * mailbox,
tmpstream = g_mime_stream_filter_new(stream);
- crlffilter = g_mime_filter_dos2unix_new(TRUE);
+ crlffilter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(tmpstream), crlffilter);
g_object_unref(crlffilter);
@@ -2846,7 +2846,7 @@ multi_append_cb(char * buf, size_t buflen,
tmpstream = g_mime_stream_filter_new(stream);
- crlffilter = g_mime_filter_dos2unix_new(TRUE);
+ crlffilter = g_mime_filter_unix2dos_new(FALSE);
g_mime_stream_filter_add(GMIME_STREAM_FILTER(tmpstream), crlffilter);
g_object_unref(crlffilter);
diff --git a/libbalsa/send.c b/libbalsa/send.c
index 6702f054e..5a16daad2 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1728,7 +1728,7 @@ libbalsa_fill_msg_queue_item_from_queu(LibBalsaMessage *message,
g_object_unref(filter);
/* add CRLF */
- filter = g_mime_filter_dos2unix_new(TRUE);
+ filter = g_mime_filter_unix2dos_new(FALSE);
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]