aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-05-29 22:48:06 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-05-29 22:48:06 +0000
commit9de124d371e99f57c9340b454a59b6c4603392b4 (patch)
tree5ded52f0d70ca518b37dc9a810d673fccc7cdd32 /driver.c
parent2ce1259d0e69bcf4113ea8f03d94729d262d37e1 (diff)
downloadfetchmail-9de124d371e99f57c9340b454a59b6c4603392b4.tar.gz
fetchmail-9de124d371e99f57c9340b454a59b6c4603392b4.tar.bz2
fetchmail-9de124d371e99f57c9340b454a59b6c4603392b4.zip
Before trying to fix the no-reset bug.
svn path=/trunk/; revision=3329
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 3 insertions, 1 deletions
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)