aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-05 22:59:34 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-05 22:59:34 +0000
commitd85c1c85de9ab0f5af54cbc2121fb778edb544df (patch)
tree829b69fc4c72500d2851d9b6ea9efee2f7cec7ef /fetchmail.c
parenta2dff321ddc433bdbb0818a71598ea2a840747b5 (diff)
downloadfetchmail-d85c1c85de9ab0f5af54cbc2121fb778edb544df.tar.gz
fetchmail-d85c1c85de9ab0f5af54cbc2121fb778edb544df.tar.bz2
fetchmail-d85c1c85de9ab0f5af54cbc2121fb778edb544df.zip
Comment fix.
svn path=/trunk/; revision=3206
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/fetchmail.c b/fetchmail.c
index ffe0ca23..3b72b8da 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1214,21 +1214,23 @@ static int load_params(int argc, char **argv, int optind)
ctl->server.truename=xstrdup((char *)namerec->h_name);
}
#endif /* HAVE_GETHOSTBYNAME */
- else {
+ else
+ {
#ifdef HAVE_GETHOSTBYNAME
struct hostent *namerec;
- /* <fetchmail@mail.julianhaight.com>
- Get the host's IP, so we can report it like this:
-
- Received: from hostname [10.0.0.1]
-
- do we actually need to gethostbyname to find the IP?
- it seems like it would be faster to do this later, when
- we are actually resolving the hostname for a connection,
- but I ain't that smart, so I don't know where to make
- the change later..
- */
+ /*
+ * Get the host's IP, so we can report it like this:
+ *
+ * Received: from hostname [10.0.0.1]
+ *
+ * For ultra-efficiency, we should find the IP later, when
+ * we are actually resolving the hostname for a connection.
+ * Problem is this would have to be done inside SockOpen
+ * and there's no way to do that that wouldn't both (a)
+ * be horribly complicated, and (b) blow a couple of
+ * layers of modularity all to hell.
+ */
errno = 0;
namerec = gethostbyname(ctl->server.queryname);
if (namerec == (struct hostent *)NULL)