[balsa/gmime3: 44/51] Fix some porting to g_mime_filter_dos2unix_new()



commit 134237c05141de609035bcaa2219e979e6678611
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Nov 24 20:25:05 2019 -0500

    Fix some porting to g_mime_filter_dos2unix_new()
    
    from g_mime_filter_crlf_new().
    
    modified:   libbalsa/gmime-application-pkcs7.c
    modified:   libbalsa/gmime-multipart-crypt.c
    modified:   libbalsa/mailbox_imap.c

 libbalsa/gmime-application-pkcs7.c | 2 +-
 libbalsa/gmime-multipart-crypt.c   | 6 +++---
 libbalsa/mailbox_imap.c            | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbalsa/gmime-application-pkcs7.c b/libbalsa/gmime-application-pkcs7.c
index 7b18c8ee4..9b26ac1f3 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(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_new(TRUE);
     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 3f9048dcc..24646bdfe 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(FALSE);
+    filter = g_mime_filter_dos2unix_new(TRUE);
     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(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_new(TRUE);
     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(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_new(TRUE);
     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 540f02c98..035fb75ab 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(FALSE);
+       crlffilter = g_mime_filter_dos2unix_new(TRUE);
        g_mime_stream_filter_add(GMIME_STREAM_FILTER(tmpstream), crlffilter);
        g_object_unref(crlffilter);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]