aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 0fb32659a4..63b313c5e3 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -3,6 +3,9 @@
* camel-mime-filter-smtp.c: filter: Updated to check for
\r's.
+ * providers/smtp/camel-smtp-transport.c: smtp_data: Fixed the
+ filtered stream
+
2000-05-22 Jeffrey Stedfast <fejj@helixcode.com>
* camel-mime-filter-from.c: Undid previous changes
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index 0210f3d823..4678baf66d 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -588,7 +588,6 @@ smtp_data (CamelSmtpTransport *transport, CamelMedium *message, CamelException *
{
/* now we can actually send what's important :p */
gchar *cmdbuf, *respbuf = NULL;
- CamelStream *message_stream;
CamelStreamFilter *filtered_stream;
CamelMimeFilterSmtp *mimefilter;
gint id;
@@ -618,13 +617,9 @@ smtp_data (CamelSmtpTransport *transport, CamelMedium *message, CamelException *
return FALSE;
}
- /* now to send the actual data */
- message_stream = gtk_type_new(camel_stream_get_type());
- camel_data_wrapper_write_to_stream(CAMEL_DATA_WRAPPER(message), message_stream);
-
/* setup stream filtering */
mimefilter = camel_mime_filter_smtp_new();
- filtered_stream = camel_stream_filter_new_with_stream(message_stream);
+ filtered_stream = camel_stream_filter_new_with_stream(transport->ostream);
id = camel_stream_filter_add(filtered_stream, CAMEL_MIME_FILTER(mimefilter));
if (camel_stream_write_to_stream(CAMEL_STREAM(filtered_stream), transport->ostream) == -1) {