mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-31 16:57:02 +00:00
test: Add a test for DSN and null address deliveries
This patch adds a test for delivery status notifications and null address deliveries, that check that chasquid can both receive and send DSNs. To do this, we extend the mail_diff utility to support wildcards in the comparisons, to skip over variable parts of the messages (like dates).
This commit is contained in:
33
test/t-05-null_address/expected_dsr
Normal file
33
test/t-05-null_address/expected_dsr
Normal file
@@ -0,0 +1,33 @@
|
||||
From user@testserver
|
||||
From: Mail Delivery System <postmaster-dsn@testserver>
|
||||
To: <user@testserver>
|
||||
Subject: Mail delivery failed: returning message to sender
|
||||
Message-ID: *
|
||||
Date: *
|
||||
X-Failed-Recipients: fail@testserver,
|
||||
Auto-Submitted: auto-replied
|
||||
|
||||
Delivery to the following recipient(s) failed permanently:
|
||||
|
||||
- fail@testserver
|
||||
|
||||
|
||||
----- Technical details -----
|
||||
|
||||
- "false" (PIPE) failed with error:
|
||||
exit status 1
|
||||
|
||||
|
||||
----- Original message -----
|
||||
|
||||
Received: from user user@testserver
|
||||
by *
|
||||
(envelope from "user@testserver")
|
||||
on ; *
|
||||
Date: *
|
||||
From: Mailer daemon <somewhere@horns.com>
|
||||
Subject: I've come to haunt you
|
||||
|
||||
Muahahahaha
|
||||
|
||||
|
||||
Reference in New Issue
Block a user