]> Pileus Git - ~andy/fetchmail/commitdiff
Better error recovery in UIDL code.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 14 May 2001 07:08:22 +0000 (07:08 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 14 May 2001 07:08:22 +0000 (07:08 -0000)
svn path=/trunk/; revision=3315

NEWS
driver.c

diff --git a/NEWS b/NEWS
index b51cf8b5b6d905007034b1fe5eac605c13f4e3fb..6a23bcc9df05648782b3bc180b018f0f4234341a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
 (The `lines' figures total .c, .h, .l, and .y files under version control.)
 
 * SSL certificate options from Thomas Moestl <tmoestl@gmx.net>.
+* Frantisek Brabec's patch for better UIDL error recovery.
 
 fetchmail-5.8.3 (Sat May 12 04:07:12 EDT 2001), 20502 lines:
 
index 42dcac8f3bcbf9d010869d66d1ef469eb5f5e0bc..6e12a6725510fb258fd82624d9789af46c3ff2e6 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -2347,8 +2347,11 @@ is restored."));
 
                            for (sdp = ctl->newsaved; sdp; sdp = sdp->next)
                                if ((sdp->val.status.num == num)
-                                               && (!toolarge || oldmsg))
+                                               && (!toolarge || oldmsg)) 
+                               {
                                    sdp->val.status.mark = UID_SEEN;
+                                   save_str(&ctl->oldsaved, sdp->id,UID_SEEN);
+                               }
                        }
 
                        /* maybe we delete this message now? */