diff options
author | Milan Crha <mcrha@redhat.com> | 2014-06-02 20:05:59 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-06-02 20:05:59 +0800 |
commit | d2127ba0d3dfd01f660e998026cf17576051af99 (patch) | |
tree | 55ddc13a16a35916afc64fb247a3c9cf770b9fac /mail/em-composer-utils.c | |
parent | c8c98d5fefc76bd5fefafe6e9ac9782b1b78378d (diff) | |
download | gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar.gz gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar.bz2 gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar.lz gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar.xz gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.tar.zst gsoc2013-evolution-d2127ba0d3dfd01f660e998026cf17576051af99.zip |
Bug 731082 - Send mail in offline mode should use Outbox folder
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | mail/em-composer-utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 44fd49c45c..26efe96d50 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -602,6 +602,14 @@ em_utils_composer_send_cb (EMsgComposer *composer, AsyncContext *async_context; GCancellable *cancellable; + if (!camel_session_get_online (CAMEL_SESSION (session))) { + e_alert_run_dialog_for_args ( + GTK_WINDOW (composer), + "mail-composer:saving-to-outbox", NULL); + e_msg_composer_save_to_outbox (composer); + return; + } + async_context = g_slice_new0 (AsyncContext); async_context->message = g_object_ref (message); async_context->composer = g_object_ref (composer); |