aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 0bdae28c..5c1023e7 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -400,7 +400,8 @@ char **argv;
if (hostp->active && !(implicitmode && hostp->skip))
{
popstatus = query_host(hostp);
- update_uid_lists(hostp);
+ if (!check_only)
+ update_uid_lists(hostp);
}
}
@@ -422,7 +423,8 @@ void termhook(int sig)
if (sig != 0)
fprintf(stderr, "terminated with signal %d\n", sig);
- write_saved_lists(hostlist, idfile);
+ if (!check_only)
+ write_saved_lists(hostlist, idfile);
unlink(lockfile);
exit(popstatus);