diff options
author | Carsten Pfeiffer <cpfeiffer@users.noreply.github.com> | 2017-11-15 17:34:46 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-11-15 08:34:46 -0800 |
commit | 010122c988b51c39c1f5be4356a9c313b066bae3 (patch) | |
tree | 45284ac6b663826ec909f673bc21e3b55964d518 /utils | |
parent | 6c211c3a12b9f909651a1431999067c7a8df0def (diff) | |
download | chat-010122c988b51c39c1f5be4356a9c313b066bae3.tar.gz chat-010122c988b51c39c1f5be4356a9c313b066bae3.tar.bz2 chat-010122c988b51c39c1f5be4356a9c313b066bae3.zip |
7740: Set auto-submitted and precedence headers for emails (#7741)
* Set auto-submitted and precedence headers for emails
This prevents auto-responses from out-of-office agents.
* Apply gofmt
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mail.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mail.go b/utils/mail.go index 9bda4ee39..6c38bfc20 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -148,6 +148,8 @@ func SendMailUsingConfig(to, subject, htmlBody string, config *model.Config) *mo "To": {to}, "Subject": {encodeRFC2047Word(subject)}, "Content-Transfer-Encoding": {"8bit"}, + "Auto-Submitted": {"auto-generated"}, + "Precedence": {"bulk"}, }) m.SetDateHeader("Date", time.Now()) |