Set headers for no auto response on most emails

Most of our auto-generated emails should not ask for auto replies (like
out of office messages or in particular, "held for moderation" notices
from our own list server), so set this header by default, and also the
header indicating if it's an auto submitted/auto replied message.

Specifically allow auto replies on moderation notices, since that's a
case where it might be really interesting for the moderator to see for
example an out of office message. At least for now that seems like a
good idea.
This commit is contained in:
Magnus Hagander
2020-04-20 10:47:56 +02:00
parent 9c69eed6e9
commit a90cbd217e
3 changed files with 23 additions and 8 deletions

View File

@ -78,7 +78,8 @@ class PgwebAdmin(admin.ModelAdmin):
send_simple_mail(settings.NOTIFICATION_FROM,
obj.org.email,
"postgresql.org moderation notification",
msgstr)
msgstr,
suppress_auto_replies=False)
# Also generate a mail to the moderators
send_simple_mail(