2005-07-04 [hoa] 1.9.12cvs12
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Mon, 4 Jul 2005 00:30:44 +0000 (00:30 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Mon, 4 Jul 2005 00:30:44 +0000 (00:30 +0000)
* commitHelper
* src/imap.c
* src/etpan/imap-thread.c
* src/etpan/imap-thread.h
fixed IMAP implementation of check of mails.

ChangeLog-gtk2.claws
PATCHSETS
commitHelper
configure.ac
src/etpan/imap-thread.c
src/etpan/imap-thread.h
src/imap.c

index 3b23877..050a346 100644 (file)
@@ -1,3 +1,11 @@
+2005-07-04 [hoa]       1.9.12cvs12
+
+       * commitHelper
+       * src/imap.c
+       * src/etpan/imap-thread.c
+       * src/etpan/imap-thread.h
+               fixed IMAP implementation of check of mails.
+
 2005-07-03 [hoa]       1.9.12cvs11
 
        * src/etpan/Makefile.am
index bda0c15..770db3e 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.395.2.89 -r 1.395.2.90 src/summaryview.c;  cvs diff -u -r 1.5.10.9 -r 1.5.10.10 src/addrgather.c;  cvs diff -u -r 1.274.2.44 -r 1.274.2.45 src/mainwindow.c;  ) > 1.9.12cvs9.patchset
 ( cvs diff -u -r 1.155.2.27 -r 1.155.2.28 src/Makefile.am;  cvs diff -u -r 1.213.2.38 -r 1.213.2.39 src/folder.c;  cvs diff -u -r 1.87.2.12 -r 1.87.2.13 src/folder.h;  cvs diff -u -r 1.207.2.44 -r 1.207.2.45 src/folderview.c;  cvs diff -u -r 1.204.2.45 -r 1.204.2.46 src/prefs_common.c;  cvs diff -u -r 1.103.2.20 -r 1.103.2.21 src/prefs_common.h;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/prefs_send.c;  cvs diff -u -r 1.150.2.29 -r 1.150.2.30 src/procmsg.c;  cvs diff -u -r 1.60.2.12 -r 1.60.2.13 src/procmsg.h;  cvs diff -u -r 1.25.2.12 -r 1.25.2.13 src/stock_pixmap.c;  cvs diff -u -r 1.18.2.8 -r 1.18.2.9 src/stock_pixmap.h;  cvs diff -u -r 1.43.2.18 -r 1.43.2.19 src/toolbar.c;  diff -u /dev/null src/pixmaps/dir_close_mark.xpm;  diff -u /dev/null src/pixmaps/dir_open_hrm_mark.xpm;  diff -u /dev/null src/pixmaps/dir_open_mark.xpm;  diff -u /dev/null src/pixmaps/drafts_close_mark.xpm;  diff -u /dev/null src/pixmaps/drafts_open_mark.xpm;  diff -u /dev/null src/pixmaps/inbox_hrm_mark.xpm;  diff -u /dev/null src/pixmaps/inbox_mark.xpm;  diff -u /dev/null src/pixmaps/outbox_hrm_mark.xpm;  diff -u /dev/null src/pixmaps/outbox_mark.xpm;  diff -u /dev/null src/pixmaps/trash_hrm_mark.xpm;  diff -u /dev/null src/pixmaps/trash_mark.xpm;  cvs diff -u -r 1.14.2.17 -r 1.14.2.18 src/plugins/trayicon/trayicon.c;  ) > 1.9.12cvs10.patchset
 (diff -u /dev/null src/etpan/Makefile.am; diff -u /dev/null src/etpan/etpan-errors.h; diff -u /dev/null src/etpan/etpan-log.c; diff -u /dev/null src/etpan/etpan-log.h; diff -u /dev/null src/etpan/etpan-thread-manager-types.h; diff -u /dev/null src/etpan/etpan-thread-manager.c; diff -u /dev/null src/etpan/etpan-thread-manager.h; diff -u /dev/null src/etpan/imap-thread.c; diff -u /dev/null src/etpan/imap-thread.h; cvs diff -u -r 1.155.2.28 -r 1.155.2.29 src/Makefile.am; cvs diff -u -r 1.179.2.42 -r 1.179.2.43 src/imap.c; cvs diff -u -r 1.115.2.40 -r 1.115.2.41 src/main.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/prefs_other.c) > 1.9.12cvs11.patchset
+( cvs diff -u -r 1.1.2.22 -r 1.1.2.23 commitHelper;  cvs diff -u -r 1.179.2.43 -r 1.179.2.44 src/imap.c;  cvs diff -u -r 1.1.4.2 -r 1.1.4.3 src/etpan/imap-thread.c;  cvs diff -u -r 1.1.4.2 -r 1.1.4.3 src/etpan/imap-thread.h;  ) > 1.9.12cvs12.patchset
index 37b4c83..383e317 100644 (file)
@@ -48,6 +48,9 @@ fi;
 if [ "$name" == "torte" ]; then
        name="thorsten";
 fi;
+if [ "$name" == "dinh" ]; then
+       name="hoa";
+fi;
 
 log="`date --utc +%Y-%m-%d` [$name]\t$nextsversion\n\n"
 for line in $files; do
index 1042f24..dc0da0a 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=11
+EXTRA_VERSION=12
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 4d76e07..45ae45e 100644 (file)
@@ -35,7 +35,7 @@ void imap_main_init(void)
        mailstream_network_delay.tv_sec = ETPAN_DEFAULT_NETWORK_TIMEOUT;
        mailstream_network_delay.tv_usec = 0;
 
-#if 0  
+#if 0
        mailstream_debug = 1;
 #endif
        imap_hash = chash_new(CHASH_COPYKEY, CHASH_DEFAULTSIZE);
@@ -517,17 +517,26 @@ static void noop_run(struct etpan_thread_op * op)
        debug_print("imap noop run - end %i\n", r);
 }
 
-int imap_threaded_noop(Folder * folder)
+int imap_threaded_noop(Folder * folder, unsigned int * p_exists)
 {
        struct noop_param param;
        struct noop_result result;
+       mailimap * imap;
        
        debug_print("imap noop - begin\n");
        
-       param.imap = get_imap(folder);
+       imap = get_imap(folder);
+       param.imap = imap;
        
        threaded_run(folder, &param, &result, noop_run);
        
+       if (imap->imap_selection_info != NULL) {
+               * p_exists = imap->imap_selection_info->sel_exists;
+       }
+       else {
+               * p_exists = 0;
+       }
+       
        debug_print("imap noop - end\n");
        
        return result.error;
index 591f13c..9c21a31 100644 (file)
@@ -29,7 +29,7 @@ int imap_threaded_login(Folder * folder,
 int imap_threaded_status(Folder * folder, const char * mb,
                struct mailimap_mailbox_data_status ** data_status);
 
-int imap_threaded_noop(Folder * folder);
+int imap_threaded_noop(Folder * folder, unsigned int * p_exists);
 int imap_threaded_starttls(Folder * folder);
 int imap_threaded_create(Folder * folder, const char * mb);
 int imap_threaded_rename(Folder * folder,
index f4a0f09..1a2a7fa 100644 (file)
@@ -2256,11 +2256,14 @@ static gint imap_cmd_logout(IMAPSession *session)
 static gint imap_cmd_noop(IMAPSession *session)
 {
        int r;
+       unsigned int exists;
        
-       r = imap_threaded_noop(session->folder);
+       r = imap_threaded_noop(session->folder, &exists);
        if (r != MAILIMAP_NO_ERROR)
                return IMAP_ERROR;
        
+       session->exists = exists;
+       
        return IMAP_SUCCESS;
 }