0.8.11claws27
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 18 Mar 2003 21:40:56 +0000 (21:40 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 18 Mar 2003 21:40:56 +0000 (21:40 +0000)
* src/imap.c
        fix imap using a tunnel command

(closes bug 87)

ChangeLog.claws
configure.ac
src/imap.c

index 5cbcf02..84dbb99 100644 (file)
@@ -1,3 +1,10 @@
+2003-03-18 [christoph] 0.8.11claws27
+
+       * src/imap.c
+               fix imap using a tunnel command
+
+       (closes bug 87)
+
 2003-03-18 [christoph] 0.8.11claws26
 
        * src/folder.[ch]
index 9085441..574f63f 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws26
+EXTRA_VERSION=claws27
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index cc877b3..44dc29b 100644 (file)
@@ -1700,10 +1700,11 @@ static SockInfo *imap_open_tunnel(const gchar *server,
 {
        SockInfo *sock;
 
-       if ((sock = sock_connect_cmd(server, tunnelcmd)) == NULL)
+       if ((sock = sock_connect_cmd(server, tunnelcmd)) == NULL) {
                log_warning(_("Can't establish IMAP4 session with: %s\n"),
                            server);
                return NULL;
+       }
 #if USE_OPENSSL
        return imap_init_sock(sock, ssl_type);
 #else
@@ -1764,12 +1765,6 @@ static SockInfo *imap_init_sock(SockInfo *sock)
        }
 #endif
 
-       if (imap_cmd_noop(sock) != IMAP_SUCCESS) {
-               log_warning(_("Can't establish IMAP4 session.\n"));
-               sock_close(sock);
-               return NULL;
-       }
-
        return sock;
 }