diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-06-07 02:21:36 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-06-07 02:21:36 +0000 |
commit | bdf8ed139a586f3ef1d11574c59813f982ca0698 (patch) | |
tree | e0c0bbcae55bffc9a26af0b163677d0ed1692760 /driver.c | |
parent | ecc6b895f60f149122eee9a3df2342e4b738fd0e (diff) | |
download | fetchmail-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) { |