2007-09-30 [colin] 3.0.1cvs49
authorColin Leroy <colin@colino.net>
Sun, 30 Sep 2007 09:05:26 +0000 (09:05 +0000)
committerColin Leroy <colin@colino.net>
Sun, 30 Sep 2007 09:05:26 +0000 (09:05 +0000)
* src/imap.c
Refresh session if needed

ChangeLog
PATCHSETS
configure.ac
src/imap.c

index 2fb315a500e9ec57fa5a2d2440a6086cfac62cd0..52c4170aaee7d9d1e265086a4ac7261435329c60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-30 [colin]     3.0.1cvs49
+
+       * src/imap.c
+               Refresh session if needed
+
 2007-09-30 [colin]     3.0.1cvs48
 
        * src/imap.c
index 2e755c0dfdbc3045be2d728993a06870d9ad2370..0ce760aa6b6e2191ec3adb4970a934dc359ba6a4 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.179.2.188 -r 1.179.2.189 src/imap.c;  ) > 3.0.1cvs46.patchset
 ( cvs diff -u -r 1.1.2.15 -r 1.1.2.16 manual/handling.xml;  cvs diff -u -r 1.1.2.4 -r 1.1.2.5 manual/es/handling.xml;  ) > 3.0.1cvs47.patchset
 ( cvs diff -u -r 1.179.2.189 -r 1.179.2.190 src/imap.c;  ) > 3.0.1cvs48.patchset
+( cvs diff -u -r 1.179.2.190 -r 1.179.2.191 src/imap.c;  ) > 3.0.1cvs49.patchset
index 2dde47c5f778f5b417879e83cbb11c4949e3f645..39d6310f8b2009ed1ea9835afa3feb1a49a1a42e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=48
+EXTRA_VERSION=49
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 8f1981cef839217e89d7b7e0fc124d1e5df35d80..a2c01373a178868091b71f468c90f91088893064 100644 (file)
@@ -1357,6 +1357,12 @@ static gint imap_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
 
        imap_scan_required(folder, dest);
 
+       session = imap_session_get(folder);
+       if (!session) {
+               return -1;
+       } else {
+               unlock_session(session);
+       }
        if (missing_uids) {
                gint a;
                ok = imap_select(session, IMAP_FOLDER(folder), dest->path,