diff options
author | dakkar <dakkar@thenautilus.net> | 2023-02-28 11:45:40 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2023-02-28 11:45:40 +0000 |
commit | a6007b23e9c7ce3b85a50207a9b4f0049d1099f2 (patch) | |
tree | 0198d4c70bcfb753e91c3dad4fdedc5b094f6818 /t/tests | |
parent | drop unused `use` (diff) | |
parent | NoSpoof for DMARC compliance (diff) | |
download | Sietima-a6007b23e9c7ce3b85a50207a9b4f0049d1099f2.tar.gz Sietima-a6007b23e9c7ce3b85a50207a9b4f0049d1099f2.tar.bz2 Sietima-a6007b23e9c7ce3b85a50207a9b4f0049d1099f2.zip |
Merge branch 'no-spoof'
Diffstat (limited to 't/tests')
-rw-r--r-- | t/tests/sietima/role/nospoof.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/t/tests/sietima/role/nospoof.t b/t/tests/sietima/role/nospoof.t new file mode 100644 index 0000000..6f30635 --- /dev/null +++ b/t/tests/sietima/role/nospoof.t @@ -0,0 +1,25 @@ +#!perl +use lib 't/lib'; +use Test::Sietima; + +my $s = make_sietima( + with_traits => ['NoSpoof'], + subscribers => [ + 'one@users.example.com', + 'two@users.example.com', + ], +); + +test_sending( + sietima => $s, + mail => { + from => 'a user <one@users.example.com>', + }, + mails => [ + object { + call [ header_str => 'from' ] => '"a user" <'.$s->return_path->address.'>'; + }, + ], +); + +done_testing; |