[evolution-patches] Mailer:Imap4: Fix #312327



Hey,

Imap4( connection) was using ssh by default to connect even if it was
not specified to do so and was failing since i did not have ask-pass.
I had this problem with Imap about a week back and NotZed committed a
patch to fix that and AFAIK that patch holds good for the Imap4 back-end
too. So attaching a patch which fixes the problem in the imap4 backend.

Thanks,
Shreyas
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap4/ChangeLog,v
retrieving revision 1.17
diff -u -p -r1.17 ChangeLog
--- ChangeLog	23 May 2005 17:18:35 -0000	1.17
+++ ChangeLog	2 Aug 2005 09:02:21 -0000
@@ -1,3 +1,8 @@
+2005-08-02  Shreyas Srinivasan  <sshreyas novell com>
+
+	* camel-imap-store.c (connect_to_server_wrapper): only use command
+	if use_command is set.
+
 2005-05-23  Jeffrey Stedfast  <fejj novell com>
 
 	* camel-imap4-folder.c (imap4_append_message): The UIDPLUS
Index: camel-imap4-store.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap4/camel-imap4-store.c,v
retrieving revision 1.51
diff -u -p -r1.51 camel-imap4-store.c
--- camel-imap4-store.c	15 Feb 2005 21:11:52 -0000	1.51
+++ camel-imap4-store.c	2 Aug 2005 09:02:22 -0000
@@ -419,7 +419,8 @@ connect_to_server_wrapper (CamelIMAP4Eng
 	const char *port;
 	char *serv;
 	
-	if ((command = camel_url_get_param (service->url, "command")))
+	if (camel_url_get_param(service->url, "use_command")
+	    &&(command = camel_url_get_param (service->url, "command")))
 		return connect_to_server_process (engine, command, ex);
 	
 	if ((ssl_mode = camel_url_get_param (service->url, "use_ssl"))) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]