aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.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 /pop2.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 'pop2.c')
-rw-r--r--pop2.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pop2.c b/pop2.c
index 4d67b518..2d6d4fe2 100644
--- a/pop2.c
+++ b/pop2.c
@@ -131,9 +131,12 @@ struct hostrec *queryctl;
/* tell 'em how many messages are waiting */
if (outlevel > O_SILENT && outlevel < O_VERBOSE)
- fprintf(stderr,"%d messages in folder %s\n",number,queryctl->remotefolder);
- else
- ;
+ if (number == 0)
+ fprintf(stderr,"No mail from %s\n",number,queryctl->servername);
+ else
+ fprintf(stderr,"%d message%s from %s\n",
+ number, number > 1 ? "s" : "", queryctl->servername);
+
/* fall into a retrieve/acknowledge loop */
if (number > 0) {