From 7a65fa93f1161e07356a7cc9e63b976c1ce1453e Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Jan 2004 06:09:33 +0000 Subject: ** See bug #50786 2004-01-08 Not Zed ** See bug #50786 * GNOME_Evolution_Mail.server.in.in: Remove :: from startup wizard iid, and put the mail wizard into the right factory. * mail-component.c (impl_requestCreateItem, impl_handleURI): * em-folder-browser.c (emfb_mail_compose): check we have an account before trying to send mail. svn path=/trunk/; revision=24104 --- mail/mail-component.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index a05dbd7526..af9add5a80 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -405,6 +405,9 @@ impl_requestCreateItem (PortableServer_Servant servant, ex_GNOME_Evolution_Component_UnknownType, NULL); return; } + + if (!em_utils_check_user_can_send_mail(NULL)) + return; em_utils_compose_new_message (); } @@ -413,6 +416,9 @@ static void impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environment *ev) { if (!strncmp (uri, "mailto:", 7)) { + if (!em_utils_check_user_can_send_mail(NULL)) + return; + em_utils_compose_new_message_with_mailto (uri); } } -- cgit v1.2.3