aboutsummaryrefslogtreecommitdiff
path: root/t/tests/sietima/role/nospoof.t
diff options
context:
space:
mode:
Diffstat (limited to 't/tests/sietima/role/nospoof.t')
-rw-r--r--t/tests/sietima/role/nospoof.t18
1 files changed, 17 insertions, 1 deletions
diff --git a/t/tests/sietima/role/nospoof.t b/t/tests/sietima/role/nospoof.t
index 6f30635..b0ec622 100644
--- a/t/tests/sietima/role/nospoof.t
+++ b/t/tests/sietima/role/nospoof.t
@@ -10,6 +10,10 @@ my $s = make_sietima(
],
);
+my $return_path = $s->return_path;
+my $return_path_address = $return_path->address;
+my $return_path_host = $return_path->host;
+
test_sending(
sietima => $s,
mail => {
@@ -17,7 +21,19 @@ test_sending(
},
mails => [
object {
- call [ header_str => 'from' ] => '"a user" <'.$s->return_path->address.'>';
+ call [ header_str => 'from' ] => qq{"a user" <$return_path_address>};
+ },
+ ],
+);
+
+test_sending(
+ sietima => $s,
+ mail => {
+ from => qq{a user <one\@$return_path_host>},
+ },
+ mails => [
+ object {
+ call [ header_str => 'from' ] => qq{"a user" <one\@$return_path_host>};
},
],
);