From cf5b2ecd3903f8e00f19bda48cd79b4b1343a03d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 23 Dec 1999 17:00:18 +0000 Subject: Ken Estes's fix for MAXFETCH returns. svn path=/trunk/; revision=2678 --- NEWS | 1 + fetchmail.c | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/NEWS b/NEWS index f852a5c9..87f2e148 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ a Certifying Authority we recognize?). * Arrange for fetchmail to restart itself quietly when the rc file is touched. * Improvements to IPv6 code from Jun-ichiro itojun Hagino . +* Patch to update UIDL lists on a MAXFETCH return, from Ken Estes. fetchmail-5.2.1 (Sun Dec 19 23:08:53 EST 1999), 18330 lines: * Added FAQ item R10 on timeouts during messages. diff --git a/fetchmail.c b/fetchmail.c index 6e461445..08d051af 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -626,23 +626,22 @@ int main(int argc, char **argv) querystatus = query_host(ctl); - if (querystatus == PS_SUCCESS) - { - successes++; #ifdef POP3_ENABLE - if (!check_only) - update_str_lists(ctl); - - /* Save UID list to prevent re-fetch in case fetchmail + /* Save UID list to prevent re-fetch in cases fetchmail recover from crash */ - if (!check_only) + if (!check_only) + if ((querystatus==PS_SUCCESS)||(querystatus==PS_MAXFETCH)) { + update_str_lists(ctl); + write_saved_lists(querylist, run.idfile); if (outlevel >= O_DEBUG) report(stdout, _("saved UID List\n")); } #endif /* POP3_ENABLE */ - } + + if (querystatus == PS_SUCCESS) + successes++; else if (!check_only && ((querystatus!=PS_NOMAIL) || (outlevel==O_DEBUG))) report(stdout, _("Query status=%d\n"), querystatus); -- cgit v1.2.3