[evolution-patches] last-minute camel fixes



I discovered that when re-getting the capabilities for a POP server
(which is done after logging in), we end up adding the 'password'
authtype to the list a second time. This is easily fixed by moving it
into the if-statement above.

second part of the patch just disables some debug printf's.

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? broken-pop3-server-workaround.patch
? camel-charset-map.patch
? camel-fixes.patch
? charset-map.c
? ct.patch
? imap.patch
? postfix.patch
? srep.sh
? subject-encoding.patch
? providers/mapi
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.1822
diff -u -r1.1822 ChangeLog
--- ChangeLog	30 May 2003 15:50:06 -0000	1.1822
+++ ChangeLog	1 Jun 2003 16:04:28 -0000
@@ -1,3 +1,11 @@
+2003-06-01  Jeffrey Stedfast  <fejj ximian com>
+
+	* broken-date-parser.c (d): Turn off debugging.
+
+	* providers/pop3/camel-pop3-engine.c (get_capabilities): Move the
+	code that prepends the 'password' authtype to the auth list so
+	that we don't add it again when regetting the capabilities.
+
 2003-05-30  Jeffrey Stedfast  <fejj ximian com>
 
 	* camel-filter-driver.c (run_only_once): Turned off a debugging
Index: broken-date-parser.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/broken-date-parser.c,v
retrieving revision 1.11
diff -u -r1.11 broken-date-parser.c
--- broken-date-parser.c	2 May 2003 17:37:11 -0000	1.11
+++ broken-date-parser.c	1 Jun 2003 16:04:29 -0000
@@ -36,7 +36,7 @@
 #include "broken-date-parser.h"
 #include "e-time-utils.h"
 
-#define d(x) x
+#define d(x)
 
 #define NUMERIC_CHARS          "1234567890"
 #define WEEKDAY_CHARS          "SundayMondayTuesdayWednesdayThursdayFridaySaturday"
Index: providers/pop3/camel-pop3-engine.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/pop3/camel-pop3-engine.c,v
retrieving revision 1.5
diff -u -r1.5 camel-pop3-engine.c
--- providers/pop3/camel-pop3-engine.c	24 Feb 2003 16:09:19 -0000	1.5
+++ providers/pop3/camel-pop3-engine.c	1 Jun 2003 16:04:29 -0000
@@ -209,10 +209,10 @@
 			pe->capa = CAMEL_POP3_CAP_APOP;
 			pe->auth = g_list_append(pe->auth, &camel_pop3_apop_authtype);
 		}
+		
+		pe->auth = g_list_prepend(pe->auth, &camel_pop3_password_authtype);
 	}
-
-	pe->auth = g_list_prepend(pe->auth, &camel_pop3_password_authtype);
-
+	
 	pc = camel_pop3_engine_command_new(pe, CAMEL_POP3_COMMAND_MULTI, cmd_capa, NULL, "CAPA\r\n");
 	while (camel_pop3_engine_iterate(pe, pc) > 0)
 		;


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