CVS: sylpheedclaws/sylpheed-claws/src/etpan imap-thread.c,1.1.4.58,1.1.4.59

[email protected]
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/etpan
In directory sunsite.dk:/tmp/cvs-serv4371/src/etpan

Modified Files:
      Tag: gtk2
	imap-thread.c 
Log Message:
2006-12-06 [colin]	2.6.1cvs7

	* src/etpan/imap-thread.c
		Fix certificate checking on IMAP

Index: imap-thread.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/etpan/Attic/imap-thread.c,v
retrieving revision 1.1.4.58
retrieving revision 1.1.4.59
diff -u -d -r1.1.4.58 -r1.1.4.59
--- imap-thread.c	2006/11/10 07:43:53	1.1.4.58
+++ imap-thread.c	2006/12/06 07:21:37	1.1.4.59
@@ -489,7 +489,8 @@
 	refresh_resolvers();
 	threaded_run(folder, &param, &result, connect_ssl_run);
 	
-	if (result.error == 0 && !etpan_skip_ssl_cert_check) {
+	if ((result.error == MAILIMAP_NO_ERROR_AUTHENTICATED ||
+	     result.error == MAILIMAP_NO_ERROR_NON_AUTHENTICATED) && !etpan_skip_ssl_cert_check) {
 		cert_len = mailstream_ssl_get_certificate(imap->imap_stream, &certificate);
 		if (etpan_certificate_check(certificate, cert_len, &param) < 0)
 			return -1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.