aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-06-07 02:21:36 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-06-07 02:21:36 +0000
commitbdf8ed139a586f3ef1d11574c59813f982ca0698 (patch)
treee0c0bbcae55bffc9a26af0b163677d0ed1692760 /driver.c
parentecc6b895f60f149122eee9a3df2342e4b738fd0e (diff)
downloadfetchmail-bdf8ed139a586f3ef1d11574c59813f982ca0698.tar.gz
fetchmail-bdf8ed139a586f3ef1d11574c59813f982ca0698.tar.bz2
fetchmail-bdf8ed139a586f3ef1d11574c59813f982ca0698.zip
Julian Haight's changes.
svn path=/trunk/; revision=2900
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 4f35261e..c1b171f5 100644
--- a/driver.c
+++ b/driver.c
@@ -987,7 +987,16 @@ static int readheaders(int sock,
if (!run.invisible && n != -1)
{
/* utter any per-message Received information we need here */
- sprintf(buf, "Received: from %s\r\n", ctl->server.truename);
+ if (ctl->server.trueaddr) {
+ sprintf(buf, "Received: from %s [%u.%u.%u.%u]\r\n",
+ ctl->server.truename,
+ (unsigned char)ctl->server.trueaddr[0],
+ (unsigned char)ctl->server.trueaddr[1],
+ (unsigned char)ctl->server.trueaddr[2],
+ (unsigned char)ctl->server.trueaddr[3]);
+ } else {
+ sprintf(buf, "Received: from %s\r\n", ctl->server.truename);
+ }
n = stuffline(ctl, buf);
if (n != -1)
{