summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2014-12-23 20:02:53 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2015-01-12 18:58:35 +0000
commitde11307f4085222c29051e5b8149ea3340707f26 (patch)
treef1571ef4777e523b73ec7dc816cba5a6989d289f
parentf926e27276301de1e2fd011b7edcd1b85d8c4754 (diff)
Emphasize whitespace in hostnames in debug output
-rw-r--r--src/src/host.c4
-rw-r--r--test/stderr/00024
-rw-r--r--test/stderr/00202
-rw-r--r--test/stderr/00234
-rw-r--r--test/stderr/00628
-rw-r--r--test/stderr/00634
-rw-r--r--test/stderr/00644
-rw-r--r--test/stderr/00662
-rw-r--r--test/stderr/00692
-rw-r--r--test/stderr/00708
-rw-r--r--test/stderr/00892
-rw-r--r--test/stderr/00946
-rw-r--r--test/stderr/03034
-rw-r--r--test/stderr/03082
-rw-r--r--test/stderr/03814
-rw-r--r--test/stderr/10002
-rw-r--r--test/stderr/22022
17 files changed, 32 insertions, 32 deletions
diff --git a/src/src/host.c b/src/src/host.c
index 7737704cd..1ef732727 100644
--- a/src/src/host.c
+++ b/src/src/host.c
@@ -1742,8 +1742,8 @@ if (sender_host_name == NULL)
HDEBUG(D_host_lookup)
{
uschar **aliases = sender_host_aliases;
- debug_printf("IP address lookup yielded %s\n", sender_host_name);
- while (*aliases != NULL) debug_printf(" alias %s\n", *aliases++);
+ debug_printf("IP address lookup yielded \"%s\"\n", sender_host_name);
+ while (*aliases != NULL) debug_printf(" alias \"%s\"\n", *aliases++);
}
/* We need to verify that a forward lookup on the name we found does indeed
diff --git a/test/stderr/0002 b/test/stderr/0002
index a30eb7399..2d0d1ab41 100644
--- a/test/stderr/0002
+++ b/test/stderr/0002
@@ -116,7 +116,7 @@ expanding: No
expanding: ----> No lookup yet: ${if eq{black}{white}{$sender_host_name}{No}}
result: ----> No lookup yet: No
looking up host name for V4NET.0.0.1
-IP address lookup yielded ten-1.test.ex
+IP address lookup yielded "ten-1.test.ex"
using host_fake_gethostbyname for ten-1.test.ex (IPv4)
MUNGED: ::1 will be omitted in what follows
get[host|ipnode]byname[2] looked up these IP addresses:
@@ -159,7 +159,7 @@ sender host name required, to match against partial-lsearch;TESTSUITE/aux-fixed/
looking up host name for V4NET.0.0.1
DNS lookup of 1.0.0.V4NET.in-addr.arpa (PTR) using fakens
DNS lookup of 1.0.0.V4NET.in-addr.arpa (PTR) succeeded
-IP address lookup yielded ten-1.test.ex
+IP address lookup yielded "ten-1.test.ex"
using host_fake_gethostbyname for ten-1.test.ex (IPv4)
DNS lookup of ten-1.test.ex (A) using fakens
DNS lookup of ten-1.test.ex (A) succeeded
diff --git a/test/stderr/0020 b/test/stderr/0020
index cbab114bb..5a49a337c 100644
--- a/test/stderr/0020
+++ b/test/stderr/0020
@@ -1,7 +1,7 @@
>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "10.250.104.0/21")
>>> looking up host name for 10.250.104.42
->>> IP address lookup yielded manyhome.test.ex
+>>> IP address lookup yielded "manyhome.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=manyhome.test.ex address=10.250.104.0
diff --git a/test/stderr/0023 b/test/stderr/0023
index 16c4abaf6..89c1d3993 100644
--- a/test/stderr/0023
+++ b/test/stderr/0023
@@ -1087,8 +1087,8 @@ LOG: H=[28.28.28.28] F=<a@baddomain> rejected RCPT <x@y>
>>> check verify = reverse_host_lookup
>>> looking up host name to force name/address consistency check
>>> looking up host name for V4NET.0.0.3
->>> IP address lookup yielded ten-3.test.ex
->>> alias ten-3-alias.test.ex
+>>> IP address lookup yielded "ten-3.test.ex"
+>>> alias "ten-3-alias.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-3.test.ex address=V4NET.0.0.3
diff --git a/test/stderr/0062 b/test/stderr/0062
index 38648d606..936b6961e 100644
--- a/test/stderr/0062
+++ b/test/stderr/0062
@@ -28,7 +28,7 @@
>>> check hosts = +relay_hosts
>>> sender host name required, to match against *-2.test.ex
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -77,7 +77,7 @@ LOG: 10HmaX-0005vi-00 <= userx@somehost.example.com H=ten-1.test.ex [V4NET.0.0.1
>>> check hosts = +relay_hosts
>>> sender host name required, to match against *-2.test.ex
>>> looking up host name for V4NET.0.0.2
->>> IP address lookup yielded ten-2.test.ex
+>>> IP address lookup yielded "ten-2.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-2.test.ex address=V4NET.0.0.2
@@ -122,8 +122,8 @@ LOG: 10HmaY-0005vi-00 <= userx@somehost.example.com H=ten-2.test.ex [V4NET.0.0.2
>>> check hosts = +relay_hosts
>>> sender host name required, to match against *-2.test.ex
>>> looking up host name for V4NET.0.0.3
->>> IP address lookup yielded ten-3.test.ex
->>> alias ten-3-alias.test.ex
+>>> IP address lookup yielded "ten-3.test.ex"
+>>> alias "ten-3-alias.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-3.test.ex address=V4NET.0.0.3
diff --git a/test/stderr/0063 b/test/stderr/0063
index 16cf4808a..a32d69978 100644
--- a/test/stderr/0063
+++ b/test/stderr/0063
@@ -28,7 +28,7 @@
>>> check hosts = +relay_hosts
>>> sender host name required, to match against ^[^\d]+2
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -73,7 +73,7 @@ LOG: 10HmaX-0005vi-00 <= userx@somehost.example.com H=ten-1.test.ex [V4NET.0.0.1
>>> check hosts = +relay_hosts
>>> sender host name required, to match against ^[^\d]+2
>>> looking up host name for V4NET.0.0.2
->>> IP address lookup yielded ten-2.test.ex
+>>> IP address lookup yielded "ten-2.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-2.test.ex address=V4NET.0.0.2
diff --git a/test/stderr/0064 b/test/stderr/0064
index 47de0e789..82b68bbc2 100644
--- a/test/stderr/0064
+++ b/test/stderr/0064
@@ -28,7 +28,7 @@
>>> check hosts = +relay_hosts
>>> sender host name required, to match against lsearch;TESTSUITE/aux-fixed/0064.hosts
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -73,7 +73,7 @@ LOG: 10HmaX-0005vi-00 <= userx@somehost.example.com H=ten-1.test.ex [V4NET.0.0.1
>>> check hosts = +relay_hosts
>>> sender host name required, to match against lsearch;TESTSUITE/aux-fixed/0064.hosts
>>> looking up host name for V4NET.0.0.2
->>> IP address lookup yielded ten-2.test.ex
+>>> IP address lookup yielded "ten-2.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-2.test.ex address=V4NET.0.0.2
diff --git a/test/stderr/0066 b/test/stderr/0066
index b86c2d553..de0821ac4 100644
--- a/test/stderr/0066
+++ b/test/stderr/0066
@@ -279,7 +279,7 @@ MUNGED: ::1 will be omitted in what follows
>>> name=ten-3.test.ex address=V4NET.0.0.3
>>> sender host name required, to match against *-1.test.ex
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
diff --git a/test/stderr/0069 b/test/stderr/0069
index 0772c28b1..df768dde2 100644
--- a/test/stderr/0069
+++ b/test/stderr/0069
@@ -3,7 +3,7 @@
>>> host in host_reject_connection? no (option unset)
>>> sender host name required, to match against ^ten-1\.test\.ex
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
diff --git a/test/stderr/0070 b/test/stderr/0070
index ebab42f3e..1df05cd83 100644
--- a/test/stderr/0070
+++ b/test/stderr/0070
@@ -105,7 +105,7 @@ MUNGED: ::1 will be omitted in what follows
>>> ten-1.test.ex in helo_lookup_domains? no (end of list)
>>> verifying EHLO/HELO argument "ten-1.test.ex"
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -128,8 +128,8 @@ MUNGED: ::1 will be omitted in what follows
>>> ten-3.test.ex in helo_lookup_domains? no (end of list)
>>> verifying EHLO/HELO argument "ten-3.test.ex"
>>> looking up host name for V4NET.0.0.3
->>> IP address lookup yielded ten-3.test.ex
->>> alias ten-3-alias.test.ex
+>>> IP address lookup yielded "ten-3.test.ex"
+>>> alias "ten-3-alias.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-3.test.ex address=V4NET.0.0.3
@@ -163,7 +163,7 @@ MUNGED: ::1 will be omitted in what follows
>>> rhubarb in helo_lookup_domains? no (end of list)
>>> verifying EHLO/HELO argument "rhubarb"
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
diff --git a/test/stderr/0089 b/test/stderr/0089
index 213760dae..bacb2914f 100644
--- a/test/stderr/0089
+++ b/test/stderr/0089
@@ -49,7 +49,7 @@ LOG: H=(abc_xyz) [V4NET.0.0.0] F=<userx@cus.cam.ac.uk> rejected RCPT <userx@else
>>> host in host_reject_connection? no (option unset)
>>> sender host name required, to match against *N-99.test.EX
>>> looking up host name for V4NET.0.0.99
->>> IP address lookup yielded ten-99.test.ex
+>>> IP address lookup yielded "ten-99.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-99.test.ex address=V4NET.0.0.99
diff --git a/test/stderr/0094 b/test/stderr/0094
index 8626c5ec1..5346c5ce8 100644
--- a/test/stderr/0094
+++ b/test/stderr/0094
@@ -32,7 +32,7 @@ LOG: H=[V4NET.11.12.13] F=<userx@cam.ac.uk> rejected RCPT <userx@cam.ac.uk>: rel
>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "0.0.0.0/0")
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -84,8 +84,8 @@ host in host_lookup? yes (matched "0.0.0.0/0")
looking up host name for V4NET.99.99.90
DNS lookup of 90.99.99.V4NET.in-addr.arpa (PTR) using fakens
DNS lookup of 90.99.99.V4NET.in-addr.arpa (PTR) succeeded
-IP address lookup yielded oneback.test.ex
- alias host1.masq.test.ex
+IP address lookup yielded "oneback.test.ex"
+ alias "host1.masq.test.ex"
using host_fake_gethostbyname for oneback.test.ex (IPv4)
DNS lookup of oneback.test.ex (A) using fakens
DNS lookup of oneback.test.ex (A) succeeded
diff --git a/test/stderr/0303 b/test/stderr/0303
index 9893e6404..a1da41fc6 100644
--- a/test/stderr/0303
+++ b/test/stderr/0303
@@ -8,7 +8,7 @@
>>> host in helo_accept_junk_hosts? no (option unset)
>>> myhost.test.ex in helo_lookup_domains? yes (matched "@")
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
@@ -24,7 +24,7 @@ MUNGED: ::1 will be omitted in what follows
>>> host in helo_accept_junk_hosts? no (option unset)
>>> [127.0.0.1] in helo_lookup_domains? yes (matched "@[]")
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
diff --git a/test/stderr/0308 b/test/stderr/0308
index 2c800bb61..d8aca4e8d 100644
--- a/test/stderr/0308
+++ b/test/stderr/0308
@@ -32,7 +32,7 @@ LOG: no host name found for IP address V4NET.0.0.97
>>> check hosts = *.test.ex
>>> sender host name required, to match against *.test.ex
>>> looking up host name for V4NET.0.0.1
->>> IP address lookup yielded ten-1.test.ex
+>>> IP address lookup yielded "ten-1.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=ten-1.test.ex address=V4NET.0.0.1
diff --git a/test/stderr/0381 b/test/stderr/0381
index 176287a50..c1ead3f60 100644
--- a/test/stderr/0381
+++ b/test/stderr/0381
@@ -37,8 +37,8 @@ sender host name required, to match against *.gov.uk.test.ex
looking up host name for V4NET.99.99.97
DNS lookup of 97.99.99.V4NET.in-addr.arpa (PTR) using fakens
DNS lookup of 97.99.99.V4NET.in-addr.arpa (PTR) succeeded
-IP address lookup yielded x.gov.uk.test.ex
- alias x.co.uk.test.ex
+IP address lookup yielded "x.gov.uk.test.ex"
+ alias "x.co.uk.test.ex"
using host_fake_gethostbyname for x.gov.uk.test.ex (IPv4)
DNS lookup of x.gov.uk.test.ex (A) using fakens
DNS lookup of x.gov.uk.test.ex (A) succeeded
diff --git a/test/stderr/1000 b/test/stderr/1000
index 669ddb4c0..6caf2cd05 100644
--- a/test/stderr/1000
+++ b/test/stderr/1000
@@ -21,7 +21,7 @@ LOG: H=[2001:0ab8:037f:0020:0000:0000:0000:0001] Warning: matched hostlist
>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "*")
>>> looking up host name for V6NET:1234:0005:0006:0007:0008:0abc:000d
->>> IP address lookup yielded test3.ipv6.test.ex
+>>> IP address lookup yielded "test3.ipv6.test.ex"
MUNGED: ::1 will be omitted in what follows
>>> get[host|ipnode]byname[2] looked up these IP addresses:
>>> name=test3.ipv6.test.ex address=V6NET:1234:5:6:7:8:abc:d
diff --git a/test/stderr/2202 b/test/stderr/2202
index fe6ea9ecb..2669d9373 100644
--- a/test/stderr/2202
+++ b/test/stderr/2202
@@ -45,7 +45,7 @@ sender host name required, to match against *.cioce.test.again.dns
looking up host name for ip4.ip4.ip4.ip4
DNS lookup of ip4-reverse.in-addr.arpa (PTR) using fakens
DNS lookup of ip4-reverse.in-addr.arpa (PTR) succeeded
-IP address lookup yielded the.local.host.name
+IP address lookup yielded "the.local.host.name"
using host_fake_gethostbyname for the.local.host.name (IPv4)
DNS lookup of the.local.host.name (A) using fakens
DNS lookup of the.local.host.name (A) succeeded