]> Pileus Git - ~andy/fetchmail/commitdiff
Johan Vromans's fix.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 18 Feb 1997 20:27:53 +0000 (20:27 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 18 Feb 1997 20:27:53 +0000 (20:27 -0000)
svn path=/trunk/; revision=902

driver.c

index ebd9637e89218a228e29f0585df8e38d40009632..a27f9d8f6138fae4e0f9e3a73bcd947939fbc8ed 100644 (file)
--- 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;