aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 6a8b4813..bcbe4fb3 100644
--- a/driver.c
+++ b/driver.c
@@ -1647,9 +1647,12 @@ const struct method *proto; /* protocol method table */
/* these are pointless in normal daemon mode */
if (pass == 1 && (poll_interval == 0 || outlevel == O_VERBOSE))
error(0, 0, "No mail at %s", buf);
- break;
}
+ /* very important, this is where we leave the do loop */
+ if (count == 0)
+ break;
+
if (check_only)
{
if (new == -1 || ctl->fetchall)