Matthew Barnes 32b2b2
--- evolution-data-server-1.9.92/servers/exchange/lib/e2k-context.c.isa-support	2007-01-03 09:56:24.000000000 -0500
Matthew Barnes 32b2b2
+++ evolution-data-server-1.9.92/servers/exchange/lib/e2k-context.c	2007-03-09 14:05:48.000000000 -0500
Matthew Barnes 32b2b2
@@ -603,6 +603,7 @@
Matthew Barnes 32b2b2
 		g_free (suri->path);
Matthew Barnes 32b2b2
 		suri->path = g_strdup (value);
Matthew Barnes 32b2b2
 		action = soup_uri_to_string (suri, FALSE);
Matthew Barnes 32b2b2
+		soup_uri_decode (action);
Matthew Barnes 32b2b2
 		soup_uri_free (suri);
Matthew Barnes 32b2b2
 	} else
Matthew Barnes 32b2b2
 		action = g_strdup (value);
Matthew Barnes 32b2b2
--- evolution-data-server-1.9.92/servers/exchange/lib/e2k-autoconfig.c.isa-support	2007-01-03 09:56:24.000000000 -0500
Matthew Barnes 32b2b2
+++ evolution-data-server-1.9.92/servers/exchange/lib/e2k-autoconfig.c	2007-03-09 14:05:48.000000000 -0500
Matthew Barnes 32b2b2
@@ -442,7 +442,9 @@
Matthew Barnes 32b2b2
 
Matthew Barnes 32b2b2
 	/* A redirection to "logon.asp" means this is Exchange 5.5
Matthew Barnes 32b2b2
 	 * OWA. A redirection to "owalogon.asp" means this is Exchange
Matthew Barnes 32b2b2
-	 * 2003 forms-based authentication. Other redirections most
Matthew Barnes 32b2b2
+	 * 2003 forms-based authentication. A redirection to
Matthew Barnes 32b2b2
+	 * "CookieAuth.dll" means that it's an Exchange 2003 server
Matthew Barnes 32b2b2
+	 * behind an ISA Server 2004 proxy. Other redirections most
Matthew Barnes 32b2b2
 	 * likely indicate that the user's mailbox has been moved to a
Matthew Barnes 32b2b2
 	 * new server.
Matthew Barnes 32b2b2
 	 */
Matthew Barnes 32b2b2
@@ -460,7 +462,8 @@
Matthew Barnes 32b2b2
 		if (strstr (location, "/logon.asp")) {
Matthew Barnes 32b2b2
 			*result = E2K_AUTOCONFIG_EXCHANGE_5_5;
Matthew Barnes 32b2b2
 			goto done;
Matthew Barnes 32b2b2
-		} else if (strstr (location, "/owalogon.asp")) {
Matthew Barnes 32b2b2
+		} else if (strstr (location, "/owalogon.asp") ||
Matthew Barnes 32b2b2
+			   strstr (location, "/CookieAuth.dll")) {
Matthew Barnes 32b2b2
 			if (e2k_context_fba (ctx, msg))
Matthew Barnes 32b2b2
 				goto try_again;
Matthew Barnes 32b2b2
 			*result = E2K_AUTOCONFIG_AUTH_ERROR;