summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-06-01 11:19:05 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2022-06-01 11:19:05 +0100
commitc2ef5d7e9fc09693770d5d89a6913b47b9d6dbe7 (patch)
tree515271b93925c33ce965d5ba9b93283561b9e3c3 /test
parentdd4daa8a2ba4986a2fc9bba17251f6955f2332b8 (diff)
downloadexim4-c2ef5d7e9fc09693770d5d89a6913b47b9d6dbe7.tar.gz
SRS: fix encode operation for empty sender addresses.
Diffstat (limited to 'test')
-rw-r--r--test/scripts/4620-SRS/46205
-rw-r--r--test/stdout/46202
2 files changed, 7 insertions, 0 deletions
diff --git a/test/scripts/4620-SRS/4620 b/test/scripts/4620-SRS/4620
index f180142a6..8119c295f 100644
--- a/test/scripts/4620-SRS/4620
+++ b/test/scripts/4620-SRS/4620
@@ -40,4 +40,9 @@ exim -DCONTROL=remote -q
exim -q
****
#
+# Sender which is empty (already a bounce)
+exim -be
+>${srs_encode {mysecret} {} {test.ex}}<
+****
+#
killdaemon
diff --git a/test/stdout/4620 b/test/stdout/4620
index 7883638a6..c1fcaf1d1 100644
--- a/test/stdout/4620
+++ b/test/stdout/4620
@@ -1,3 +1,5 @@
> SRS0=ZZZZ=YY=the.local.host.name=CALLER@test.ex
> "SRS0=ZZZZ=YY=the.local.host.name=CALLER"@test.ex
>
+> ><
+>