aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-08 14:09:33 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-08 14:09:33 +0800
commit7a65fa93f1161e07356a7cc9e63b976c1ce1453e (patch)
treed58137cb387185d54f9907b79d030b73f4df6450 /mail/mail-component.c
parent722969d52596f78bea02dc81023209c1d8cc0839 (diff)
downloadgsoc2013-evolution-7a65fa93f1161e07356a7cc9e63b976c1ce1453e.tar.gz
gsoc2013-evolution-7a65fa93f1161e07356a7cc9e63b976c1ce1453e.tar.zst
gsoc2013-evolution-7a65fa93f1161e07356a7cc9e63b976c1ce1453e.zip
** See bug #50786
2004-01-08 Not Zed <NotZed@Ximian.com> ** 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
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c6
1 files changed, 6 insertions, 0 deletions
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);
}
}