2006-07-25 [colin] 2.3.1cvs85
[claws.git] / src / etpan / imap-thread.c
index 692ccfc21c83f95a9c956027774ed62373e52bcc..0ee012d502bc0f607dc3294af8d1c4223c19792a 100644 (file)
@@ -20,6 +20,7 @@
 #include "etpan-thread-manager.h"
 #include "utils.h"
 #include "ssl_certificate.h"
+#include "socket.h"
 
 #define DISABLE_LOG_DURING_LOGIN
 
@@ -357,6 +358,7 @@ int imap_threaded_connect(Folder * folder, const char * server, int port)
        param.server = server;
        param.port = port;
        
+       refresh_resolvers();
        threaded_run(folder, &param, &result, connect_run);
        
        debug_print("connect ok %i\n", result.error);
@@ -427,6 +429,7 @@ int imap_threaded_connect_ssl(Folder * folder, const char * server, int port)
        param.server = server;
        param.port = port;
        
+       refresh_resolvers();
        threaded_run(folder, &param, &result, connect_ssl_run);
        
        if (result.error >= 0 && !etpan_skip_ssl_cert_check) {