diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-07-01 10:58:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-07-01 10:58:23 +0000 |
commit | 04b1eaf99dc25e2974f8ddd9692d67f6357cf93d (patch) | |
tree | 8c7ca0285928c0154f87c864cb223891b279407e /fetchmail.c | |
parent | 22fe7c94d3c6a1b2618d03a00a25675fdb83ac25 (diff) | |
download | fetchmail-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.c | 5 |
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) |