[balsa/gmime3: 43/46] Fix some porting to g_mime_filter_dos2unix_new()



commit a51ef17a6981f7ece61506fe0accaa790eac2fe3
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 61648984f..662fc135d 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 7526eee54..8a57f8ffc 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 82ff31a42..5f447bec3 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 25a1fbddd..601c7048a 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]