diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-05-29 22:48:06 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-05-29 22:48:06 +0000 |
commit | 9de124d371e99f57c9340b454a59b6c4603392b4 (patch) | |
tree | 5ded52f0d70ca518b37dc9a810d673fccc7cdd32 /driver.c | |
parent | 2ce1259d0e69bcf4113ea8f03d94729d262d37e1 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |