diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-26 04:38:33 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-26 04:38:33 +0000 |
commit | 29783b401e04e4e38a139f22b30e832f29e3c447 (patch) | |
tree | f7a4652daa19980ddf03a1f8060e6787408376fc | |
parent | acec5dd26cf180054a5543b83a3e28196d218cc9 (diff) | |
download | fetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.tar.gz fetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.tar.bz2 fetchmail-29783b401e04e4e38a139f22b30e832f29e3c447.zip |
Even more improved sizeticker.
svn path=/trunk/; revision=156
-rw-r--r-- | driver.c | 6 | ||||
-rw-r--r-- | fetchmail.h | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -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]; |