diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-02-18 20:27:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-02-18 20:27:53 +0000 |
commit | 457589916cab15904d2fb743ce5f3c06c837d550 (patch) | |
tree | ab25d5661bafd90fed1912a27aa22666a38daad2 /driver.c | |
parent | d0f03d60aab40d1b2b9612c6d5aeff6dd08d54b3 (diff) | |
download | fetchmail-457589916cab15904d2fb743ce5f3c06c837d550.tar.gz fetchmail-457589916cab15904d2fb743ce5f3c06c837d550.tar.bz2 fetchmail-457589916cab15904d2fb743ce5f3c06c837d550.zip |
Johan Vromans's fix.
svn path=/trunk/; revision=902
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -54,7 +54,6 @@ extern char *strstr(); /* needed on sysV68 R3V7.1. */ -int batchlimit; /* how often to tear down the delivery connection */ int fetchlimit; /* how often to tear down the server connection */ int batchcount; /* count of messages sent in current batch */ int peek_capable; /* can we peek for better error recovery? */ @@ -347,7 +346,7 @@ static FILE *smtp_open(struct query *ctl) lead = ctl->lead_smtp; /* go to the SMTP leader for this query */ /* maybe it's time to close the socket in order to force delivery */ - if (batchlimit && lead->smtp_sockfp && batchcount++ == batchlimit) + if (ctl->batchlimit && lead->smtp_sockfp && batchcount++==ctl->batchlimit) { fclose(lead->smtp_sockfp); lead->smtp_sockfp = (FILE *)NULL; |