aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-12-28 14:20:56 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-12-28 14:20:56 +0800
commitdcf5f23803989d03d3edc3d0d6dc7962ca8325e9 (patch)
tree55b4a26aaa963744620794062c267b7b1c7fb139 /mail/mail-component.c
parenta6c6f6d90674cf789a114768f8597086b572ffae (diff)
downloadgsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar.gz
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar.bz2
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar.lz
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar.xz
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.tar.zst
gsoc2013-evolution-dcf5f23803989d03d3edc3d0d6dc7962ca8325e9.zip
Handle mailto/email URIs (unfinished).
Restore unfinished messages on startup. svn path=/branches/kill-bonobo/; revision=36935
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 7fa34785d8..9013556388 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -1037,28 +1037,28 @@ handleuri_got_folder(char *uri, CamelFolder *folder, void *data)
camel_url_free(url);
}
-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, NULL);
- } else if (!strncmp(uri, "email:", 6)) {
- CamelURL *url = camel_url_new(uri, NULL);
-
- if (camel_url_get_param(url, "uid") != NULL) {
- char *curi = em_uri_to_camel(uri);
-
- mail_get_folder(curi, 0, handleuri_got_folder, url, mail_msg_unordered_push);
- g_free(curi);
- } else {
- g_warning("email uri's must include a uid parameter");
- camel_url_free(url);
- }
- }
-}
+//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, NULL);
+// } else if (!strncmp(uri, "email:", 6)) {
+// CamelURL *url = camel_url_new(uri, NULL);
+//
+// if (camel_url_get_param(url, "uid") != NULL) {
+// char *curi = em_uri_to_camel(uri);
+//
+// mail_get_folder(curi, 0, handleuri_got_folder, url, mail_msg_unordered_push);
+// g_free(curi);
+// } else {
+// g_warning("email uri's must include a uid parameter");
+// camel_url_free(url);
+// }
+// }
+//}
//static void
//impl_sendAndReceive (PortableServer_Servant servant, CORBA_Environment *ev)
@@ -1224,11 +1224,11 @@ c//all_mail_sync (gpointer user_data)
// }
//}
-static void
-impl_mail_test(PortableServer_Servant servant, CORBA_Environment *ev)
-{
- printf("*** Testing mail interface!! ***\n");
-}
+//static void
+//impl_mail_test(PortableServer_Servant servant, CORBA_Environment *ev)
+//{
+// printf("*** Testing mail interface!! ***\n");
+//}
/* Initialization. */
@@ -1247,14 +1247,14 @@ mail_component_class_init (MailComponentClass *class)
epv->createView = impl_createView;
epv->requestQuit = impl_requestQuit;
epv->quit = impl_quit;
- epv->_get_userCreatableItems = impl__get_userCreatableItems;
- epv->requestCreateItem = impl_requestCreateItem;
- epv->handleURI = impl_handleURI;
- epv->sendAndReceive = impl_sendAndReceive;
- epv->upgradeFromVersion = impl_upgradeFromVersion;
- epv->setLineStatus = impl_setLineStatus;
-
- mepv->test = impl_mail_test;
+// epv->_get_userCreatableItems = impl__get_userCreatableItems;
+// epv->requestCreateItem = impl_requestCreateItem;
+// epv->handleURI = impl_handleURI;
+// epv->sendAndReceive = impl_sendAndReceive;
+// epv->upgradeFromVersion = impl_upgradeFromVersion;
+// epv->setLineStatus = impl_setLineStatus;
+
+// mepv->test = impl_mail_test;
}
//static void