From a92b2120b2821201050459910e1d44f4ceabc6a9 Mon Sep 17 00:00:00 2001 From: Pothi Kalimuthu <1254302+pothi@users.noreply.github.com> Date: Fri, 6 Jun 2025 08:35:05 +0530 Subject: [PATCH] Add a test script to reproduce a recent bug --- test-snippets/email-dns-bug.rsc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test-snippets/email-dns-bug.rsc diff --git a/test-snippets/email-dns-bug.rsc b/test-snippets/email-dns-bug.rsc new file mode 100644 index 0000000..2fdff2f --- /dev/null +++ b/test-snippets/email-dns-bug.rsc @@ -0,0 +1,13 @@ +# How to reproduce +# 1. Configure email sending. +# 2. Turn off DNS servers and/or DoH server +# 3. Clear DNS cache +# 4. Run this script +# 5. On ideal conditions, we'd get "A friendly message" in the log +# 6. Due to bug, we get nothing we email sending fails upon DNS failure. + +:do { + /tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject" +} on-error={ :log error "A friendly message" } + +:log warn "This message should not be shown"