aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-26 04:38:33 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-26 04:38:33 +0000
commit29783b401e04e4e38a139f22b30e832f29e3c447 (patch)
treef7a4652daa19980ddf03a1f8060e6787408376fc
parentacec5dd26cf180054a5543b83a3e28196d218cc9 (diff)
downloadfetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.tar.gz
fetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.tar.bz2
fetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.zip
Even more improved sizeticker.
svn path=/trunk/; revision=156
-rw-r--r--driver.c6
-rw-r--r--fetchmail.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index 992ef7a4..bc2e87c2 100644
--- a/driver.c
+++ b/driver.c
@@ -467,11 +467,11 @@ int rewrite;
skipwrite:;
sizeticker += strlen(bufp);
- while (sizeticker >= MSGBUFSIZE)
+ while (sizeticker >= SIZETICKER)
{
if (outlevel > O_SILENT && outlevel < O_VERBOSE && mboxfd != 1)
fputc('.',stderr);
- sizeticker -= MSGBUFSIZE;
+ sizeticker -= SIZETICKER;
}
lines++;
}
@@ -790,7 +790,7 @@ va_dcl {
fprintf(stderr,"> %s\n", buf);
ok = (protocol->parse_response)(buf,socket);
- if (ok != 0 && outlevel > O_SILENT && outlevel <= O_VERBOSE)
+ if (outlevel > O_SILENT && outlevel <= O_VERBOSE)
fprintf(stderr,"%s\n",buf);
return(ok);
diff --git a/fetchmail.h b/fetchmail.h
index 2db2e5b2..0733be2f 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -54,6 +54,8 @@
#define TO_STDOUT 3 /* use stdout */
#define TO_MDA 4 /* use agent */
+#define TICKERSIZE 1024 /* print 1 dot per this many bytes */
+
struct hostrec
{
char servername [HOSTLEN+1];