GNOME Bugzilla – Bug 541188
Evolution can't connect POP3 or IMAP server on Solaris in non-ssl Mode
Last modified: 2013-09-13 01:01:31 UTC
Please describe the problem: Evolution can't connect to POP3 or IMAP server on Solaris in non-ssl mode Steps to reproduce: 1. Configure a IMAP or POP3 account 2. In "Secure connection", choose "No encryption" 3. Actual results: Evolution can't connect the servers successfully Expected results: Evolution should connect the servers successfully Does this happen every time? Yes. Other information: Since Evolution 2.22 can work well on gnome 2.23, we can know that it is not the base library caused the problem.
In camel-tcp-stream-raw.c:socket_connect, connect returns -1 with errno 0. In normal case, connect should return -1 with errno 150. Please refer to the following code: int fdmax, status; fd_set rdset, wrset; #ifndef G_OS_WIN32 flags = fcntl (fd, F_GETFL); fcntl (fd, F_SETFL, flags | O_NONBLOCK); #else { u_long yes = 1; ioctlsocket (fd, FIONBIO, &yes); } #endif if (connect (fd, h->ai_addr, h->ai_addrlen) == 0) { #ifndef G_OS_WIN32 fcntl (fd, F_SETFL, flags); #else { u_long no = 0; ioctlsocket (fd, FIONBIO, &no); } #endif return fd; } if (!SOCKET_ERROR_IS_EINPROGRESS ()) { errnosav = errno; SOCKET_CLOSE (fd); errno = errnosav; return -1; }
This has already been reported as bug 538074, thus marking it as such. *** This bug has been marked as a duplicate of 538074 ***