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@