2006-07-25 [colin] 2.3.1cvs85
authorColin Leroy <colin@colino.net>
Tue, 25 Jul 2006 08:44:31 +0000 (08:44 +0000)
committerColin Leroy <colin@colino.net>
Tue, 25 Jul 2006 08:44:31 +0000 (08:44 +0000)
* src/mainwindow.c
* src/common/socket.h
* src/etpan/imap-thread.c
Refresh resolvers before connecting
to IMAP servers, and after switching
to online. Thanks to Paul.

ChangeLog
PATCHSETS
configure.ac
src/common/socket.h
src/etpan/imap-thread.c
src/mainwindow.c

index 65060b9..c06435a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-07-25 [colin]     2.3.1cvs85
+
+       * src/mainwindow.c
+       * src/common/socket.h
+       * src/etpan/imap-thread.c
+               Refresh resolvers before connecting
+               to IMAP servers, and after switching
+               to online. Thanks to Paul.
+
 2006-07-18 [colin]
 
        * 2.4.0-rc4 released
index a014a12..92140f7 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.94.2.90 -r 1.94.2.91 src/messageview.c;  ) > 2.3.1cvs82.patchset
 ( diff -u /dev/null sylpheed-claws.ico;  ) > 2.3.1cvs83.patchset
 ( cvs diff -u -r 1.149.2.53 -r 1.149.2.54 src/inc.c;  ) > 2.3.1cvs84.patchset
+( cvs diff -u -r 1.274.2.125 -r 1.274.2.126 src/mainwindow.c;  cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/common/socket.h;  cvs diff -u -r 1.1.4.45 -r 1.1.4.46 src/etpan/imap-thread.c;  ) > 2.3.1cvs85.patchset
index 65020ca..014a67f 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=3
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=84
+EXTRA_VERSION=85
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index cec5522..de655e8 100644 (file)
@@ -69,6 +69,7 @@ struct _SockInfo
        GIOCondition condition;
 };
 
+void refresh_resolvers                 (void);
 gint sock_init                         (void);
 gint sock_cleanup                      (void);
 
index 692ccfc..0ee012d 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) {
index b9b28ff..9bf3bb9 100644 (file)
@@ -95,6 +95,7 @@
 #include "colorlabel.h"
 #include "textview.h"
 #include "imap.h"
+#include "socket.h"
 
 #define AC_LABEL_WIDTH 240
 
@@ -3155,6 +3156,7 @@ static void online_switch_clicked (GtkButton *btn, gpointer data)
                menuitem->active = FALSE;
                prefs_common.work_offline = FALSE;
                inc_autocheck_timer_set();
+               refresh_resolvers();
        }
 }