From 9de124d371e99f57c9340b454a59b6c4603392b4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 29 May 2001 22:48:06 +0000 Subject: Before trying to fix the no-reset bug. svn path=/trunk/; revision=3329 --- driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 6e12a672..505bf26c 100644 --- a/driver.c +++ b/driver.c @@ -1823,7 +1823,7 @@ const int maxfetch; /* maximum number of messages to fetch */ report(stderr, _("Authorization failure on %s@%s%s\n"), ctl->remotename, ctl->server.truename, - (ctl->wehaveauthed ? " (previously authorized)" : " ") + (ctl->wehaveauthed ? _(" (previously authorized)") : "") ); /* @@ -2552,6 +2552,8 @@ const struct method *proto; /* protocol method table */ int fetchlimit = NUM_VALUE_OUT(ctl->fetchlimit); do { + if (fetchlimit > 0 && (expunge == 0 || expunge > fetchlimit - totalcount)) + expunge = fetchlimit - totalcount; ok = do_session(ctl, proto, expunge); totalcount += expunge; if (NUM_SPECIFIED(ctl->fetchlimit) && totalcount >= fetchlimit) -- cgit v1.2.3