mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user