Set headers for no auto response on most emails
authorMagnus Hagander <magnus@hagander.net>
Mon, 20 Apr 2020 08:47:56 +0000 (10:47 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 20 Apr 2020 08:49:33 +0000 (10:49 +0200)
commita90cbd217e1e75c520c406e7f9fd9ab1e26cd201
tree60ae187174fcfbcf45e7c7acfdf9d29f3238f256
parent9c69eed6e9440ab58c3d2799c1e37701e6bcd4d7
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.
pgweb/mailqueue/util.py
pgweb/util/admin.py
pgweb/util/misc.py