diff options
author | Milan Crha <mcrha@redhat.com> | 2014-06-02 20:36:00 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-06-02 20:36:00 +0800 |
commit | 2f73b39bf2999fa0316e776a0d7a3967e69c8ec6 (patch) | |
tree | 12f9628dfb6ba7807393a6ff762d08de84dd692c /mail | |
parent | d2127ba0d3dfd01f660e998026cf17576051af99 (diff) | |
download | gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar.gz gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar.bz2 gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar.lz gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar.xz gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.tar.zst gsoc2013-evolution-2f73b39bf2999fa0316e776a0d7a3967e69c8ec6.zip |
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.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-composer-utils.c | 10 | ||||
-rw-r--r-- | mail/mail-config.ui | 18 |
2 files changed, 27 insertions, 1 deletions
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 ( diff --git a/mail/mail-config.ui b/mail/mail-config.ui index a4769fe02d..4ba1964860 100644 --- a/mail/mail-config.ui +++ b/mail/mail-config.ui @@ -278,6 +278,22 @@ </packing> </child> <child> + <object class="GtkCheckButton" id="chkUseOutbox"> + <property name="label" translatable="yes">Send messages through Outbo_x folder</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="xalign">0.5</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">4</property> + </packing> + </child> + <child> <object class="GtkHBox" id="hboxComposerCharset"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -304,7 +320,7 @@ <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">4</property> + <property name="position">5</property> </packing> </child> </object> |