From 04b1eaf99dc25e2974f8ddd9692d67f6357cf93d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 1 Jul 2000 10:58:23 +0000 Subject: Limit damage from bad UIDL handling. svn path=/trunk/; revision=2921 --- fetchmail.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index f2f3cff6..b1cf9cb8 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -648,8 +648,9 @@ int main(int argc, char **argv) querystatus = query_host(ctl); #ifdef POP3_ENABLE - if (!check_only) - uid_end_query(ctl); + /* leave the UIDL state alone if there have been any errors */ + if (!check_only && !querystatus) + uid_swap_lists(ctl); #endif /* POP3_ENABLE */ if (querystatus == PS_SUCCESS) -- cgit v1.2.3