1
0
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:
Alberto Bertogli
2016-09-25 20:05:21 +01:00
parent 1d3675a133
commit 469cbd5d76
9 changed files with 149 additions and 1 deletions

View 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