mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
Handle IP address domains (#285)
* Add basic TestRecipientAddress tests * Handle forward-path route spec * Validate IP addr "domains" * Forward-path test cases * Add integration test * Add IPv4 recip swaks test * Special case domain mailbox extraction * add IPv6 swaks test * Formatting Signed-off-by: James Hillyerd <james@hillyerd.com> * Update changelog
This commit is contained in:
12
pkg/test/testdata/no-to-ipv4.golden
vendored
Normal file
12
pkg/test/testdata/no-to-ipv4.golden
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
Mailbox: ip4recipient
|
||||
From: <fromuser@inbucket.org>
|
||||
To: [<ip4recipient@[192.168.123.123]>]
|
||||
Subject: basic subject
|
||||
Size: 198
|
||||
|
||||
BODY TEXT:
|
||||
No-To message.
|
||||
|
||||
|
||||
BODY HTML:
|
||||
|
||||
12
pkg/test/testdata/no-to-ipv6.golden
vendored
Normal file
12
pkg/test/testdata/no-to-ipv6.golden
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
Mailbox: ip6recipient
|
||||
From: <fromuser@inbucket.org>
|
||||
To: [<ip6recipient@[IPv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334]>]
|
||||
Subject: basic subject
|
||||
Size: 227
|
||||
|
||||
BODY TEXT:
|
||||
No-To message.
|
||||
|
||||
|
||||
BODY HTML:
|
||||
|
||||
4
pkg/test/testdata/no-to.txt
vendored
Normal file
4
pkg/test/testdata/no-to.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
From: fromuser@inbucket.org
|
||||
Subject: basic subject
|
||||
|
||||
No-To message.
|
||||
Reference in New Issue
Block a user