aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-13 06:47:46 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-13 06:47:46 +0000
commit1d72e50456b06d53bcdec968d7295c76471bd204 (patch)
tree78ed90932b62821ca78b5d186af51ed32bc9366d /transact.c
parent1f91c0381a8b8a00c97a9839fff11e0da9083616 (diff)
downloadfetchmail-1d72e50456b06d53bcdec968d7295c76471bd204.tar.gz
fetchmail-1d72e50456b06d53bcdec968d7295c76471bd204.tar.bz2
fetchmail-1d72e50456b06d53bcdec968d7295c76471bd204.zip
Sunil Shetye's latest cleanup patch.
svn path=/trunk/; revision=3712
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/transact.c b/transact.c
index d20cf28c..77a2b29f 100644
--- a/transact.c
+++ b/transact.c
@@ -1097,33 +1097,20 @@ int readheaders(int sock,
#else
sprintf(buf+1,
#endif /* HAVE_SNPRINTF */
- "for %s@%s (by default); ",
- user, ctl->destaddr);
+ "for %s (by default); ",
+ rcpt_address (ctl, run.postmaster, 0));
}
else if (good_addresses == 1)
{
for (idp = msgblk.recipients; idp; idp = idp->next)
if (idp->val.status.mark == XMIT_ACCEPT)
break; /* only report first address */
- if (strchr(idp->id, '@'))
#ifdef HAVE_SNPRINTF
snprintf(buf+1, sizeof(buf)-1,
#else
sprintf(buf+1,
#endif /* HAVE_SNPRINTF */
- "for %s", idp->id);
- else
- /*
- * This could be a bit misleading, as destaddr is
- * the forwarding host rather than the actual
- * destination. Most of the time they coincide.
- */
-#ifdef HAVE_SNPRINTF
- snprintf(buf+1, sizeof(buf)-1,
-#else
- sprintf(buf+1,
-#endif /* HAVE_SNPRINTF */
- "for %s@%s", idp->id, ctl->destaddr);
+ "for %s", rcpt_address (ctl, idp->id, 1));
sprintf(buf+strlen(buf), " (%s); ",
MULTIDROP(ctl) ? "multi-drop" : "single-drop");
}