From 56f2f5e7a800ec59ae8d027a6c551ebf84fbda94 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 2 Aug 1998 18:43:17 +0000 Subject: Eliminate agethostbyname call in non-ETRN modes. svn path=/trunk/; revision=2033 --- driver.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'driver.c') 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: \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); -- cgit v1.2.3