From 2f73b39bf2999fa0316e776a0d7a3967e69c8ec6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 2 Jun 2014 14:36:00 +0200 Subject: Add "Send messages through Outbox folder" option Users ask from time to time for the old behaviour when the messages used to be saved through Outbox, rather than the composer being opened all the time the message is sending. The change is pretty simple, thus why not to add it. Note the Outbox is not flushed after sending, the users is responsible to invoke the Outbox flush on his/her own. This also allows a user to postpone the message send for later. --- mail/em-composer-utils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/em-composer-utils.c') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 26efe96d50..22cc594273 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -601,6 +601,16 @@ em_utils_composer_send_cb (EMsgComposer *composer, { AsyncContext *async_context; GCancellable *cancellable; + GSettings *settings; + + settings = g_settings_new ("org.gnome.evolution.mail"); + if (g_settings_get_boolean (settings, "composer-use-outbox")) { + e_msg_composer_save_to_outbox (composer); + g_object_unref (settings); + return; + } + + g_object_unref (settings); if (!camel_session_get_online (CAMEL_SESSION (session))) { e_alert_run_dialog_for_args ( -- cgit v1.2.3