aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-18 20:27:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-18 20:27:53 +0000
commit457589916cab15904d2fb743ce5f3c06c837d550 (patch)
treeab25d5661bafd90fed1912a27aa22666a38daad2 /driver.c
parentd0f03d60aab40d1b2b9612c6d5aeff6dd08d54b3 (diff)
downloadfetchmail-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index ebd9637e..a27f9d8f 100644
--- a/driver.c
+++ b/driver.c
@@ -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;