[evolution-exchange] exchange_transport_send_to_sync(): Remove an unnecessary check.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange] exchange_transport_send_to_sync(): Remove an unnecessary check.
- Date: Wed, 11 May 2011 16:03:05 +0000 (UTC)
commit 22c2060c2761657c6433ed915df4d805489ec5c9
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed May 11 12:01:28 2011 -0400
exchange_transport_send_to_sync(): Remove an unnecessary check.
"popb4smtp" returns a UID now anyway, not a URI. So it would have
needed fixed anyway, but didn't seem worth it.
camel/camel-exchange-transport.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/camel/camel-exchange-transport.c b/camel/camel-exchange-transport.c
index 7ecd927..4dfe1de 100644
--- a/camel/camel-exchange-transport.c
+++ b/camel/camel-exchange-transport.c
@@ -39,10 +39,7 @@ exchange_transport_send_to_sync (CamelTransport *transport,
GCancellable *cancellable,
GError **error)
{
- CamelService *service;
- CamelSession *session;
CamelStore *store = NULL;
- gchar *url_string;
CamelInternetAddress *cia;
const gchar *addr;
GPtrArray *recipients_array;
@@ -55,25 +52,6 @@ exchange_transport_send_to_sync (CamelTransport *transport,
GSList *h, *bcc = NULL;
gint len, i;
- service = CAMEL_SERVICE (transport);
- session = camel_service_get_session (service);
-
- url_string = camel_session_get_password (
- session, service, NULL,
- "ignored", "popb4smtp_uri", 0, error);
- if (!url_string)
- return FALSE;
- if (strncmp (url_string, "exchange:", 9) != 0) {
- g_set_error (
- error, CAMEL_SERVICE_ERROR,
- CAMEL_SERVICE_ERROR_UNAVAILABLE,
- _("Exchange transport can only be used with Exchange mail source"));
- g_free (url_string);
- return FALSE;
- }
-
- g_free (url_string);
-
recipients_array = g_ptr_array_new ();
len = camel_address_length (recipients);
cia = CAMEL_INTERNET_ADDRESS (recipients);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]