From cab27f77c1146f70bb4c63f345b0b92f7568df11 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 16 May 2023 10:29:39 +0200 Subject: [PATCH] Don't send ooo messages to noreply@ --- core/admin/mailu/internal/templates/default.sieve | 4 +++- towncrier/newsfragments/2823.bugfix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 towncrier/newsfragments/2823.bugfix diff --git a/core/admin/mailu/internal/templates/default.sieve b/core/admin/mailu/internal/templates/default.sieve index f08c19bb..c1772c2e 100644 --- a/core/admin/mailu/internal/templates/default.sieve +++ b/core/admin/mailu/internal/templates/default.sieve @@ -35,5 +35,7 @@ if exists "X-Virus" { } {% if user.reply_active %} -vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}"; +if not address :localpart :contains ["From","Reply-To"] ["noreply","no-reply"]{ + vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}"; +} {% endif %} diff --git a/towncrier/newsfragments/2823.bugfix b/towncrier/newsfragments/2823.bugfix new file mode 100644 index 00000000..883e0d75 --- /dev/null +++ b/towncrier/newsfragments/2823.bugfix @@ -0,0 +1 @@ +Don't send out of office messages to no\-?reply@