aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/mail-ops.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-05-19 23:11:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-05-20 01:35:28 +0800
commit98f39d7ee0581aaa28c33564d9d6b27aa23028fa (patch)
treea55d7307795a07022afc53d0a030639bfabab45f /libemail-engine/mail-ops.c
parent98462b59ec41432fe0334c473b4e4c11a0f3def6 (diff)
downloadgsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar.gz
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar.bz2
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar.lz
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar.xz
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.tar.zst
gsoc2013-evolution-98f39d7ee0581aaa28c33564d9d6b27aa23028fa.zip
Adapt to CamelService API changes.
em_utils_connect_service_sync() and em_utils_disconnect_service_sync() are no longer needed. CamelService itself now effectively does what these functions were doing.
Diffstat (limited to 'libemail-engine/mail-ops.c')
-rw-r--r--libemail-engine/mail-ops.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c
index 3374629744..217f75dc90 100644
--- a/libemail-engine/mail-ops.c
+++ b/libemail-engine/mail-ops.c
@@ -380,7 +380,7 @@ exit:
/* also disconnect if not a local delivery mbox;
* there is no need to keep the connection alive forever */
if (!is_local_delivery)
- em_utils_disconnect_service_sync (
+ camel_service_disconnect_sync (
service, TRUE, cancellable, NULL);
}
@@ -606,7 +606,7 @@ mail_send_message (struct _send_queue_msg *m,
}
if (camel_address_length (recipients) > 0) {
- if (!em_utils_connect_service_sync (
+ if (!camel_service_connect_sync (
CAMEL_SERVICE (transport), cancellable, error))
goto exit;
@@ -1624,7 +1624,7 @@ empty_trash_exec (struct _empty_trash_msg *m,
service = CAMEL_SERVICE (m->store);
uid = camel_service_get_uid (service);
- if (!em_utils_connect_service_sync (service, cancellable, error))
+ if (!camel_service_connect_sync (service, cancellable, error))
return;
trash = camel_store_get_trash_folder_sync (
@@ -1712,10 +1712,10 @@ disconnect_service_desc (struct _disconnect_msg *m)
static void
disconnect_service_exec (struct _disconnect_msg *m,
- GCancellable *cancellable,
- GError **error)
+ GCancellable *cancellable,
+ GError **error)
{
- em_utils_disconnect_service_sync (
+ camel_service_disconnect_sync (
CAMEL_SERVICE (m->store), TRUE, cancellable, error);
}