[recipes] Add more email fallbacks



commit 6a1d4a0c4def3bdf5c2da4738719164f8667bd98
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 28 22:56:01 2017 -0500

    Add more email fallbacks

 src/gr-mail.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-mail.c b/src/gr-mail.c
index 8769819..1e03035 100644
--- a/src/gr-mail.c
+++ b/src/gr-mail.c
@@ -124,6 +124,12 @@ window_handle_exported (GtkWindow  *window,
 
         proxy = get_mail_portal_proxy ();
 
+        if (proxy == NULL) {
+                g_message ("Email portal not present, falling back to mailto: url");
+                send_mail_using_mailto (md);
+                return;
+        }
+
         g_variant_builder_init (&opt_builder, G_VARIANT_TYPE ("a{sv}"));
         g_variant_builder_add (&opt_builder, "{sv}", "address", g_variant_new_string (md->address));
         g_variant_builder_add (&opt_builder, "{sv}", "subject", g_variant_new_string (md->subject));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]