diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-28 03:06:16 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-28 03:06:16 +0800 |
commit | f99adedeb6714ed2971d60f1e56f49871a65619c (patch) | |
tree | 91997343d2d05a0e6793a228fcc99e96a80a4912 /mail | |
parent | 397a851038f09c2a40ac70f8dbf04308622c2c02 (diff) | |
download | gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar.gz gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar.bz2 gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar.lz gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar.xz gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.tar.zst gsoc2013-evolution-f99adedeb6714ed2971d60f1e56f49871a65619c.zip |
Oops. Remove the part of the previous patch that wasn't supposed to
escape into the real world. :)
svn path=/trunk/; revision=2665
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-ops.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index b339bfd746..9a7f41611d 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -258,32 +258,16 @@ static void composer_send_cb (EMsgComposer *composer, gpointer data) { CamelMimeMessage *message; - CamelTransport *transport; - CamelException *ex; - static gboolean loaded = FALSE; + CamelStream *stream; + int stdout_dup; message = e_msg_composer_get_message (composer); - camel_mime_message_set_from (message, - "Dan Winship <danw@helixcode.com>"); - camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", - "Evolution 0.0.0.0.0.0.0.0.0.1"); - camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); - - if (!loaded) { - camel_provider_register_as_module ("/usr/local/lib/evolution/camel-providers/0.0.1/libcamelsendmail.so"); - loaded = TRUE; - } - ex = camel_exception_new (); - transport = camel_session_get_transport_for_protocol ( - default_session->session, "sendmail", ex); - if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) - g_warning (camel_exception_get_description (ex)); - else { - camel_transport_send (transport, CAMEL_MEDIUM (message), ex); - if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) - g_warning (camel_exception_get_description (ex)); - gtk_object_destroy (GTK_OBJECT (transport)); - } + + stdout_dup = dup (1); + stream = camel_stream_fs_new_with_fd (stdout_dup); + camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), + stream); + camel_stream_close (stream); gtk_object_unref (GTK_OBJECT (message)); gtk_object_destroy (GTK_OBJECT (composer)); |