[balsa/gmime3: 20/52] Oops--use g_mime_filter_dos2unix_new()



commit 34964b0e2353ec50cb8e717c2a97e7e6ffbf493d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Nov 21 15:15:27 2019 -0800

    Oops--use g_mime_filter_dos2unix_new()
    
    not g_mime_filter_dos2unix()!
    
    modified:   libbalsa/gmime-application-pkcs7.c
    modified:   libbalsa/gmime-multipart-crypt.c
    modified:   libbalsa/mailbox_imap.c
    modified:   libbalsa/mailbox_maildir.c
    modified:   libbalsa/mailbox_mbox.c
    modified:   libbalsa/mailbox_mh.c
    modified:   libbalsa/message.c
    modified:   libbalsa/send.c

 libbalsa/gmime-application-pkcs7.c | 2 +-
 libbalsa/gmime-multipart-crypt.c   | 6 +++---
 libbalsa/mailbox_imap.c            | 4 ++--
 libbalsa/mailbox_maildir.c         | 2 +-
 libbalsa/mailbox_mbox.c            | 2 +-
 libbalsa/mailbox_mh.c              | 2 +-
 libbalsa/message.c                 | 2 +-
 libbalsa/send.c                    | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/libbalsa/gmime-application-pkcs7.c b/libbalsa/gmime-application-pkcs7.c
index 662fc135d..48add9396 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_unix2dos_new(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_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 8a57f8ffc..1528c951a 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_unix2dos_new(FALSE);
+    filter = g_mime_filter_dos2unix_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_unix2dos_new(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_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_unix2dos_new(FALSE);
+    crlf_filter = g_mime_filter_dos2unix_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 a5cee57ed..5f1c5a9bc 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_unix2dos(FALSE);
+        filter = g_mime_filter_dos2unix_new(FALSE);
         g_mime_stream_filter_add(GMIME_STREAM_FILTER(fstream), filter);
         g_object_unref(filter);
 
@@ -2723,7 +2723,7 @@ libbalsa_mailbox_imap_add_messages(LibBalsaMailbox * mailbox,
 
        tmpstream = g_mime_stream_filter_new(stream);
 
-       crlffilter = g_mime_filter_unix2dos(FALSE);
+       crlffilter = g_mime_filter_dos2unix_new(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 6551322a5..a26de6155 100644
--- a/libbalsa/mailbox_maildir.c
+++ b/libbalsa/mailbox_maildir.c
@@ -893,7 +893,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_unix2dos(FALSE);
+    crlffilter = g_mime_filter_dos2unix_new(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 23a16a828..eb638d664 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -1838,7 +1838,7 @@ lbm_mbox_armored_stream(GMimeStream * stream)
     
     fstream = g_mime_stream_filter_new(stream);
 
-    filter = g_mime_filter_unix2dos(FALSE);
+    filter = g_mime_filter_dos2unix_new(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 02a1227c5..dbb293cfb 100644
--- a/libbalsa/mailbox_mh.c
+++ b/libbalsa/mailbox_mh.c
@@ -1075,7 +1075,7 @@ lbm_mh_add_message(LibBalsaMailboxLocal * local,
     }
     out_stream = g_mime_stream_fs_new(fd);
 
-    crlffilter = g_mime_filter_unix2dos(FALSE);
+    crlffilter = g_mime_filter_dos2unix_new(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 fbdc41240..f7dfa0e2f 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -1336,7 +1336,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_unix2dos(FALSE);
+    gmime_filter_crlf = g_mime_filter_dos2unix_new(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 7a4be6784..15c7f287c 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1743,7 +1743,7 @@ libbalsa_fill_msg_queue_item_from_queu(LibBalsaMessage  *message,
         g_object_unref(filter);
 
         /* add CRLF */
-        filter = g_mime_filter_unix2dos_new(TRUE);
+        filter = g_mime_filter_dos2unix_new(TRUE);
         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]