Quoting from Sunil Shetye's mail on Fri, Sep 19, 2003 at 03:28:20PM +0530:
There is no need for fetchmail to get all the sizes right at the
start. The attached patch changes this transaction in the following
way:
Some minor fixes to be applied after the previous patch:
=========================================================================
diff -Naur fetchmail-6.2.4.orig/driver.c fetchmail-6.2.4/driver.c
--- fetchmail-6.2.4.orig/driver.c 2003-09-20 13:08:20.000000000 +0530
+++ fetchmail-6.2.4/driver.c 2003-09-22 11:50:55.000000000 +0530
@@ -484,13 +484,13 @@
/* To avoid flooding the syslog when using --keep,
* report "Skipped message" only when:
* 1) --verbose is on, or
- * 2) fetchmail does not use syslog, or
+ * 2) fetchmail does not use syslog
*/
if ( (outlevel >= O_VERBOSE) ||
(outlevel > O_SILENT && !run.use_syslog)
)
{
- report(stdout,
+ report_build(stdout,
GT_("skipping message %s(_at_)%s:%d"),
ctl->remotename, ctl->server.truename, num);
}
@@ -524,7 +524,7 @@
stage = oldstage;
}
- msgsize = msgsizes[num-firstnum];
+ msgsize = msgsizes ? msgsizes[num-firstnum] : 0;
/* check if the message is oversized */
if (NUM_NONZERO(ctl->limit) && (msgsize > ctl->limit))
=========================================================================
--
Sunil Shetye.