[balsa/wip/gmime3: 2/197] Dot-stuff outgoing mail



commit 7552cd44b79b399a058d42f569f5c27de406376e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jun 25 12:01:37 2017 -0400

    Dot-stuff outgoing mail
    
        * libbalsa/send.c (libbalsa_fill_msg_queue_item_from_queu): use
        GMimeFilterSmtpData to dot-stuff outgoing mail.

 ChangeLog       |    7 +++++++
 libbalsa/send.c |    7 ++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8cad840..eb1ae19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-06-25  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Dot-stuff outgoing mail
+
+       * libbalsa/send.c (libbalsa_fill_msg_queue_item_from_queu): use
+       GMimeFilterSmtpData to dot-stuff outgoing mail.
+
 2017-06-19  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Possible fix for Red Hat Bugzilla #1462546, reported by jamesbdonovan rambler ru
diff --git a/libbalsa/send.c b/libbalsa/send.c
index 39c7f80..88925c2 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1634,11 +1634,16 @@ libbalsa_fill_msg_queue_item_from_queu(LibBalsaMessage  *message,
         g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
         g_object_unref(G_OBJECT(filter));
 
-        /* add CRLF, encode dot */
+        /* add CRLF */
         filter = g_mime_filter_unix2dos_new(TRUE);
         g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
         g_object_unref(G_OBJECT(filter));
 
+        /* encode dot */
+        filter = g_mime_filter_smtp_data_new();
+        g_mime_stream_filter_add(GMIME_STREAM_FILTER(filter_stream), filter);
+        g_object_unref(G_OBJECT(filter));
+
         /* write to a new stream */
         mqi->stream = g_mime_stream_mem_new();
         g_mime_stream_write_to_stream(filter_stream, mqi->stream);


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