aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-01 17:08:15 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-01 17:08:15 +0000
commitf20e0dc3fb887fb41ab7fb22b435b2ef34ce62b9 (patch)
tree46b5b833f2bb9e1a03705dd581586c92d3e9d84e
parent2851aca44832a918020e5721360fbe63c1ca2508 (diff)
downloadfetchmail-f20e0dc3fb887fb41ab7fb22b435b2ef34ce62b9.tar.gz
fetchmail-f20e0dc3fb887fb41ab7fb22b435b2ef34ce62b9.tar.bz2
fetchmail-f20e0dc3fb887fb41ab7fb22b435b2ef34ce62b9.zip
Fix ETRN messages.
svn path=/trunk/; revision=2248
-rw-r--r--NEWS1
-rw-r--r--etrn.c9
2 files changed, 7 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 2f51b734..40f9d14a 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ fetchmail-4.6.9 ():
* Corrected MIME generation of bounce mail.
* Prevent core dumps on 'for' and 'by' in names (bug introduced in 4.6.8).
* Peter Hamlen's fix for bounce-message generation.
+* Silent mode now suppresses progress messages from 2xx responses in ETRN.
There are 247 people on fetchmail-friends and 309 on fetchmail-announce.
diff --git a/etrn.c b/etrn.c
index 74dadc1e..203dc4df 100644
--- a/etrn.c
+++ b/etrn.c
@@ -70,16 +70,19 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id,
switch(atoi(buf))
{
case 250: /* OK, queuing for node <x> started */
- error(0, 0, _("Queuing for %s started"), qnp->id);
+ if (outlevel >= O_SILENT)
+ error(0, 0, _("Queuing for %s started"), qnp->id);
break;
case 251: /* OK, no messages waiting for node <x> */
- error(0, 0, _("No messages waiting for %s"), qnp->id);
+ if (outlevel >= O_SILENT)
+ error(0, 0, _("No messages waiting for %s"), qnp->id);
return(PS_NOMAIL);
case 252: /* OK, pending messages for node <x> started */
case 253: /* OK, <n> pending messages for node <x> started */
- error(0, 0, _("Pending messages for %s started"), qnp->id);
+ if (outlevel >= O_SILENT)
+ error(0, 0, _("Pending messages for %s started"), qnp->id);
break;
case 458: /* Unable to queue messages for node <x> */