From 457589916cab15904d2fb743ce5f3c06c837d550 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 18 Feb 1997 20:27:53 +0000 Subject: Johan Vromans's fix. svn path=/trunk/; revision=902 --- driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'driver.c') 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; -- cgit v1.2.3