aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-08-02 18:43:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-08-02 18:43:17 +0000
commit56f2f5e7a800ec59ae8d027a6c551ebf84fbda94 (patch)
tree5ad8b388e06b8fee5d73de1f7573e2418a92b8a0 /driver.c
parent1587e4153763fab493acf2deee9028e24e1da57f (diff)
downloadfetchmail-56f2f5e7a800ec59ae8d027a6c551ebf84fbda94.tar.gz
fetchmail-56f2f5e7a800ec59ae8d027a6c551ebf84fbda94.tar.bz2
fetchmail-56f2f5e7a800ec59ae8d027a6c551ebf84fbda94.zip
Eliminate agethostbyname call in non-ETRN modes.
svn path=/trunk/; revision=2033
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 2ed48634..efff0bb2 100644
--- a/driver.c
+++ b/driver.c
@@ -364,7 +364,7 @@ static int smtp_open(struct query *ctl)
* What it will affect is the listener's logging.
*/
struct idlist *idp;
- char *id_me = run.invisible ? ctl->server.truename : fetchmailhost;
+ char *id_me = run.invisible ? ctl->server.truename : "localhost";
int oldphase = phase;
errno = 0;
@@ -890,8 +890,8 @@ int num; /* index of message */
#else
sprintf(buf,
#endif /* HAVE_SNPRINTF */
- "From: <FETCHMAIL-DAEMON@%s>\r\nTo: %s@localhost\r\nSubject: Headerless mail from %s's mailbox on %s\r\n",
- fetchmailhost, user, ctl->remotename, ctl->server.truename);
+ "From: FETCHMAIL-DAEMON\r\nTo: %s@localhost\r\nSubject: Headerless mail from %s's mailbox on %s\r\n",
+ user, ctl->remotename, ctl->server.truename);
headers = xstrdup(buf);
}
@@ -1360,8 +1360,7 @@ int num; /* index of message */
* but this can be secure information that would be bad
* to reveal.
*/
- sprintf(buf, "\tby %s (fetchmail-%s %s)\n",
- fetchmailhost,
+ sprintf(buf, "\tby fetchmail-%s %s\n",
RELEASE_ID,
protocol->name);
n = stuffline(ctl, buf);