fix partial download bug
authorColin Leroy <colin@colino.net>
Sun, 18 Jul 2004 10:19:08 +0000 (10:19 +0000)
committerColin Leroy <colin@colino.net>
Sun, 18 Jul 2004 10:19:08 +0000 (10:19 +0000)
ChangeLog.claws
PATCHSETS
configure.ac
src/pop.c

index 8e031a2..4ea33c7 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-18 [colin]     0.9.12cvs32
+
+       * src/pop.c
+               Fix partial download bug with "Download all
+               messages" option
+
 2004-07-18 [colin]     0.9.12cvs31
 
        * src/folderview.c
index d0e22a7..f4895db 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
@@ -18,3 +18,4 @@
 ( cvs diff -u -r 1.105 -r 1.106 src/folder.h; cvs diff -u -r 1.242 -r 1.243 src/folderview.c; cvs diff -u -r 1.438 -r 1.439 src/summaryview.c; ) > 0.9.12cvs29.patchset
 ( cvs diff -u -r 1.439 -r 1.440 src/summaryview.c; ) > 0.9.12cvs30.patchset
 ( cvs diff -u -r 1.243 -r 1.244 src/folderview.c; ) > 0.9.12cvs31.patchset
+( cvs diff -u -r 1.64 -r 1.65 src/pop.c; ) > 0.9.12cvs32.patchset
index bbe8339..41f2253 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=31
+EXTRA_VERSION=32
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index 217fcf5..89905c4 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -266,7 +266,8 @@ static gint pop3_getrange_uidl_recv(Pop3Session *session, const gchar *data,
                partial_recv = (gint)g_hash_table_lookup(
                                        session->partial_recv_table, id);
 
-               if (!session->ac_prefs->getall && recv_time != RECV_TIME_NONE) {
+               if (!session->ac_prefs->getall && recv_time != RECV_TIME_NONE
+               ||  partial_recv != POP3_TOTALLY_RECEIVED) {
                        session->msg[num].received = 
                                (partial_recv != POP3_MUST_COMPLETE_RECV);
                        session->msg[num].partial_recv = partial_recv;