aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-24 21:22:15 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-24 21:22:15 +0000
commit5c6efe96225a646c5ff1ae3db4de8e392baf0286 (patch)
tree09b2c30f9d6e853b070a7532c3adf2e089decd8a /driver.c
parent890726f5e3730478ca1f5901d1582b18c3dedb4b (diff)
downloadfetchmail-5c6efe96225a646c5ff1ae3db4de8e392baf0286.tar.gz
fetchmail-5c6efe96225a646c5ff1ae3db4de8e392baf0286.tar.bz2
fetchmail-5c6efe96225a646c5ff1ae3db4de8e392baf0286.zip
Quiet the program down a bit.
svn path=/trunk/; revision=126
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 177f67b9..14011ae5 100644
--- a/driver.c
+++ b/driver.c
@@ -115,7 +115,7 @@ struct method *proto;
}
/* print the greeting */
- if (outlevel > O_SILENT && outlevel < O_VERBOSE)
+ if (outlevel == O_VERBOSE)
fprintf(stderr,"%s greeting: %s\n", protocol->name, buf);
/* try to get authorized to fetch mail */
@@ -131,11 +131,17 @@ struct method *proto;
/* show them how many messages we'll be downloading */
if (outlevel > O_SILENT && outlevel < O_VERBOSE)
- if (first > 1)
- fprintf(stderr,"%d messages in folder, %d new messages.\n",
- count, count - first + 1);
+ if (count == 0)
+ fprintf(stderr, "No mail from %s\n", queryctl->servername);
+ else if (first > 1)
+ fprintf(stderr,
+ "%d message%s from %s, %d new messages.\n",
+ count, count > 1 ? "s" : "",
+ queryctl->servername, count - first + 1);
else
- fprintf(stderr,"%d %smessages in folder.\n", count, ok ? "" : "new ");
+ fprintf(stderr,
+ "%d %smessages from %s.\n",
+ count, ok ? "" : "new ", queryctl->servername);
if (count > 0) {
for (number = queryctl->flush ? 1 : first; number<=count; number++) {