From 128a9da4bca6a3b8ff8f0e6a26edee2b89fe4d9e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Nov 1998 13:47:03 +0000 Subject: Added fetchliimit message. svn path=/trunk/; revision=2214 --- NEWS | 1 + driver.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 81901b9c..968efdd3 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ fetchmail-4.6.8 (): and Jorge Godoy . First supported language is Brazilo-Portuegese (LC_ALL=pt_BR). * Fixed Debian Bug#29913: -M on the command line causes SEGV in daemon mode. +* Emit a message when fetchlimit is reached. There are 247 people on fetchmail-friends and 309 on fetchmail-announce. diff --git a/driver.c b/driver.c index 41eaa287..2c561a61 100644 --- a/driver.c +++ b/driver.c @@ -1963,8 +1963,13 @@ const struct method *proto; /* protocol method table */ error_complete(0, 0, _(" not flushed")); /* perhaps this as many as we're ready to handle */ - if (NUM_NONZERO(ctl->fetchlimit) && ctl->fetchlimit <= fetches) + if (NUM_NONZERO(ctl->fetchlimit) + && ctl->fetchlimit <= fetches) + { + error(0, 0, _("fetchlimit reached; %d messages left on server"), + count - fetches); goto no_error; + } } if (!check_only && ctl->skipped) -- cgit v1.2.3