mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-21 15:17:01 +00:00
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).
34 lines
631 B
Plaintext
34 lines
631 B
Plaintext
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
|
|
|
|
|