aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-01 10:58:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-07-01 10:58:23 +0000
commit04b1eaf99dc25e2974f8ddd9692d67f6357cf93d (patch)
tree8c7ca0285928c0154f87c864cb223891b279407e /fetchmail.c
parent22fe7c94d3c6a1b2618d03a00a25675fdb83ac25 (diff)
downloadfetchmail-04b1eaf99dc25e2974f8ddd9692d67f6357cf93d.tar.gz
fetchmail-04b1eaf99dc25e2974f8ddd9692d67f6357cf93d.tar.bz2
fetchmail-04b1eaf99dc25e2974f8ddd9692d67f6357cf93d.zip
Limit damage from bad UIDL handling.
svn path=/trunk/; revision=2921
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 3 insertions, 2 deletions
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)