2005-07-16 [colin] 1.9.12cvs65
[claws.git] / src / prefs_other.c
index 6b524057b1f01e14dbfd2b943944bc028a9fd5c9..59278ce3345ac3954116b3b53465617d78741263 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004 Hiroyuki Yamamoto & The Sylpheed-Claws Team
+ * Copyright (C) 2005 Colin Leroy <colin@colino.net> & The Sylpheed-Claws Team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,6 +38,9 @@
 #include "gtk/prefswindow.h"
 
 #include "manage_window.h"
+#ifdef HAVE_LIBETPAN
+#include "imap-thread.h"
+#endif
 
 typedef struct _OtherPage
 {
@@ -235,6 +238,9 @@ void prefs_other_save(PrefsPage *_page)
        prefs_common.io_timeout_secs = gtk_spin_button_get_value_as_int(
                GTK_SPIN_BUTTON(page->spinbtn_iotimeout));
        sock_set_io_timeout(prefs_common.io_timeout_secs);
+#ifdef HAVE_LIBETPAN
+       imap_main_set_timeout(prefs_common.io_timeout_secs);
+#endif
        mainwindow = mainwindow_get_mainwindow();
        log_window_set_clipping(mainwindow->logwin, prefs_common.cliplog,
                                prefs_common.loglength);