aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/sendmail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-06 22:39:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-06 22:39:30 +0800
commita0c1a491f146e480589496c0714a9be6857d2c26 (patch)
tree535af3bac6eac9d68762bae60b1ee8c46b2fce68 /camel/providers/sendmail
parent9b665c1a82813d17deb3c50d357bc60f13d041dc (diff)
downloadgsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.tar.gz
gsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.tar.zst
gsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.zip
Fixes for bug #39168
2003-03-06 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #39168 * providers/local/camel-spool-summary.c: Get rid of the empty private struct. * providers/local/camel-mbox-summary.c: Get rid of the empty private struct. * camel-vee-store.c: Get rid of the empty private struct. * camel-mime-filter-from.c: Get rid of the empty private struct. 2003-03-05 Jeffrey Stedfast <fejj@ximian.com> * providers/sendmail/camel-sendmail-transport.c (sendmail_send_to): Add a CRLF filter to the output stream to convert any CRLF sequences into plain old line-feeds to work around a bug in some local transport programs. svn path=/trunk/; revision=20187
Diffstat (limited to 'camel/providers/sendmail')
-rw-r--r--camel/providers/sendmail/camel-sendmail-transport.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c
index 7ba567832b..f7059198b0 100644
--- a/camel/providers/sendmail/camel-sendmail-transport.c
+++ b/camel/providers/sendmail/camel-sendmail-transport.c
@@ -34,6 +34,8 @@
#include <string.h>
#include "camel-sendmail-transport.h"
+#include "camel-mime-filter-crlf.h"
+#include "camel-stream-filter.h"
#include "camel-mime-message.h"
#include "camel-data-wrapper.h"
#include "camel-stream-fs.h"
@@ -88,6 +90,8 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message,
struct _header_raw *header, *savedbcc, *n, *tail;
const char *from_addr, *addr, **argv;
int i, len, fd[2], nullfd, wstat;
+ CamelStreamFilter *filter;
+ CamelMimeFilter *crlf;
sigset_t mask, omask;
CamelStream *out;
pid_t pid;
@@ -185,6 +189,13 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message,
/* Parent process. Write the message out. */
close (fd[0]);
out = camel_stream_fs_new_with_fd (fd[1]);
+ filter = camel_stream_filter_new_with_stream (out);
+ crlf = camel_mime_filter_crlf_new (CAMEL_MIME_FILTER_CRLF_DECODE, CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY);
+ camel_stream_filter_add (filter, crlf);
+ camel_object_unref (crlf);
+ camel_object_unref (out);
+
+ out = (CamelStream *) filter;
if (camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), out) == -1
|| camel_stream_close (out) == -1) {
camel_object_unref (CAMEL_OBJECT (out));