aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];