]> Pileus Git - ~andy/fetchmail/commitdiff
Added fetchliimit message.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 26 Nov 1998 13:47:03 +0000 (13:47 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Nov 1998 13:47:03 +0000 (13:47 -0000)
svn path=/trunk/; revision=2214

NEWS
driver.c

diff --git a/NEWS b/NEWS
index 81901b9c3b186052c3ebeea91e579d09804913d1..968efdd398867dc7e4c8a3c291714df36fe63203 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ fetchmail-4.6.8 ():
   <acme@conectiva.com.br> and Jorge Godoy <jorge@bestway.com.br>.  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.
 
index 41eaa287f803608d74541f3bf18f419e4e278a97..2c561a6159de9a44046d311e740f61fcd5dabbf8 100644 (file)
--- 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)