aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-05-14 07:08:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-05-14 07:08:22 +0000
commitae8090aa44620da8f6321a0ffac7b663d1429b7f (patch)
treec6f59d52047e5b57c551acb7d279fd6967ecfab6
parentc5a58c018e5a8207bd39a63aedcd8ef206c9d8ab (diff)
downloadfetchmail-ae8090aa44620da8f6321a0ffac7b663d1429b7f.tar.gz
fetchmail-ae8090aa44620da8f6321a0ffac7b663d1429b7f.tar.bz2
fetchmail-ae8090aa44620da8f6321a0ffac7b663d1429b7f.zip
Better error recovery in UIDL code.
svn path=/trunk/; revision=3315
-rw-r--r--NEWS1
-rw-r--r--driver.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b51cf8b5..6a23bcc9 100644
--- 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:
diff --git a/driver.c b/driver.c
index 42dcac8f..6e12a672 100644
--- 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? */