summaryrefslogtreecommitdiff
path: root/test/scripts/5700-events
diff options
context:
space:
mode:
authorMatthias Kurz <m.kurz@irregular.at>2018-09-28 19:04:55 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-09-28 19:07:00 +0100
commitffbc20ed9c9ed09a68ff0a608f623c3c83d521a8 (patch)
treea7dfcd265ab8fe6c6b5c3a43d48aa1b1122ecfc3 /test/scripts/5700-events
parenteb58ddf5828a161dec94f131ff2c5c926c868354 (diff)
Events: Fire msg:fail:delivery event even when error is being ignored. Bug 2314
Diffstat (limited to 'test/scripts/5700-events')
-rw-r--r--test/scripts/5700-events/57002
-rw-r--r--test/scripts/5700-events/570119
-rw-r--r--test/scripts/5700-events/570226
-rw-r--r--test/scripts/5700-events/570320
4 files changed, 66 insertions, 1 deletions
diff --git a/test/scripts/5700-events/5700 b/test/scripts/5700-events/5700
index 42735dbc7..89b0c5cd5 100644
--- a/test/scripts/5700-events/5700
+++ b/test/scripts/5700-events/5700
@@ -29,7 +29,7 @@ exim -qqf
#
#
#
-exim -odq userx@domain2
+exim -odq userx@expansionfail
A deliverable message which will hit a coding error in the config
****
server PORT_S
diff --git a/test/scripts/5700-events/5701 b/test/scripts/5700-events/5701
new file mode 100644
index 000000000..50e1c27c3
--- /dev/null
+++ b/test/scripts/5700-events/5701
@@ -0,0 +1,19 @@
+# Events for syntactically invalid generated recipient on autoreply
+#
+exim -odi userx-filter@domain1
+Subject: Bad from
+From: "something" x@y
+
+This is a test with a syntactically bad From: line and we process it
+with a filter and fire events.
+****
+#
+#
+#
+#
+exim -odi userx-filter@domain1
+Subject: Good from
+From: "User X" <userx@domain1>
+
+This is a test we process with a filter and fire events.
+****
diff --git a/test/scripts/5700-events/5702 b/test/scripts/5700-events/5702
new file mode 100644
index 000000000..b970ec090
--- /dev/null
+++ b/test/scripts/5700-events/5702
@@ -0,0 +1,26 @@
+# Raise msg:fail:delivery when an error, originated by a filter, gets ignored.
+#
+exim -odq userx@domain1
+Also try to deliver this message to usery via a filter deliver command.
+However that fails. But because of the noerror cmd the error just gets ignored.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250 HELP
+MAIL
+250 OK
+RCPT
+250 OK
+RCPT
+550 Not that one
+DATA
+354 More...
+.
+250 OK
+QUIT
+220 OK
+****
+exim -qqf
+****
diff --git a/test/scripts/5700-events/5703 b/test/scripts/5700-events/5703
new file mode 100644
index 000000000..54fd48544
--- /dev/null
+++ b/test/scripts/5700-events/5703
@@ -0,0 +1,20 @@
+# Raise msg:fail:delivery when an error of a failed bounce gets ignored.
+#
+exim -odq userx@domain1
+Try to deliver this message to usery via a filter deliver "redirect".
+However that fails. Later the bounce also fails.
+****
+server PORT_S 2
+220 ESMTP
+EHLO
+250-OK
+250 HELP
+MAIL
+250 OK
+RCPT
+550 Not that one
+QUIT
+220 OK
+****
+exim -qqf
+****