aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-28 16:44:42 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-28 16:44:42 +0000
commit678813042577102b9d41f2c41752ffd91d878803 (patch)
treeaa6783e2358601730ba85330c4d006da9dc69f71
parentadf54c77a7f32ec1e17f7d400a85ebcf08eb5321 (diff)
downloadfetchmail-678813042577102b9d41f2c41752ffd91d878803.tar.gz
fetchmail-678813042577102b9d41f2c41752ffd91d878803.tar.bz2
fetchmail-678813042577102b9d41f2c41752ffd91d878803.zip
Generate correct for clauses in trace headers.
svn path=/trunk/; revision=2223
-rw-r--r--NEWS1
-rw-r--r--driver.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 0678c806..baf9e32a 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ fetchmail-4.6.8 ():
* Added bounce-mail capability on SMTP/ESMTP error messages.
* Documented fetchmail's actions on ESMTP errors.
* Fix an undead-message hole in POP3 with fetchall on.
+* Fix a minor error in generation of fetchmail's trace headers.
There are 247 people on fetchmail-friends and 309 on fetchmail-announce.
diff --git a/driver.c b/driver.c
index 0e63c19d..efbbec4c 100644
--- a/driver.c
+++ b/driver.c
@@ -880,7 +880,7 @@ static int readheaders(int sock, long fetchlen, long reallen, struct query *ctl,
if (good_addresses == 0)
{
sprintf(buf+1,
- "for <%s@%s> (by default); ",
+ "for %s@%s (by default); ",
user, ctl->destaddr);
}
else if (good_addresses == 1)
@@ -889,9 +889,9 @@ static int readheaders(int sock, long fetchlen, long reallen, struct query *ctl,
if (idp->val.status.mark == XMIT_ACCEPT)
break; /* only report first address */
if (strchr(idp->id, '@'))
- sprintf(buf+1, "for <%s>", idp->id);
+ sprintf(buf+1, "for %s", idp->id);
else
- sprintf(buf+1, "for <%s/%s>", idp->id, ctl->destaddr);
+ sprintf(buf+1, "for %s/%s", idp->id, ctl->destaddr);
sprintf(buf+strlen(buf), " (%s); ",
MULTIDROP(ctl) ? "multi-drop" : "single-drop");
}