]> Pileus Git - ~andy/fetchmail/commitdiff
POP3: some UID flags may not be set properly on UIDL lists. (Sunil Shetye)
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 24 May 2006 10:54:40 +0000 (10:54 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 24 May 2006 10:54:40 +0000 (10:54 -0000)
svn path=/branches/BRANCH_6-3/; revision=4852

NEWS
pop3.c

diff --git a/NEWS b/NEWS
index d5b92d359bd448b3ef5a831e3ba4bed40abfb384..f35a730b76caacbd1aa9a20d206014dbaf7c575a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,7 @@ fetchmail 6.3.5 (not yet released):
 * Provide INET6 to KAME/getnameinfo.c (only useful on IPv6-enabled systems that
   lack getnameinfo, and there only visible in some Received: headers).
   Found by Dan Fandrich.
+* POP3: some UID flags may not be set properly on UIDL lists. (Sunil Shetye)
 * Make IMAP4 IDLE work on servers that do not update RECENT counts.
   Reported by Lars Tewes.
 * IMAP4 patch by Sunil Shetye:
diff --git a/pop3.c b/pop3.c
index c4163ab143e7853571cc8517289347727ff18d9d..fd5b130459e5526c870e5c603139ad21962821ea 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -1019,8 +1019,9 @@ static int pop3_getrange(int sock,
                             * the same mail will not be downloaded again.
                             */
                            old = save_str(&ctl->oldsaved, id, UID_UNSEEN);
-                           old->val.status.num = unum;
                        }
+                       /* save the number */
+                       old->val.status.num = unum;
                    } else
                        return PS_ERROR;
                } /* multi-line loop for UIDL reply */