aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 970e1ac1..6c392f4a 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -653,7 +653,8 @@ int main(int argc, char **argv)
#ifdef POP3_ENABLE
/* leave the UIDL state alone if there have been any errors */
- if (!check_only && !querystatus)
+ if (!check_only &&
+ ((querystatus==PS_SUCCESS) || (querystatus==PS_NOMAIL)))
uid_swap_lists(ctl);
#endif /* POP3_ENABLE */