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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6c211c3a12
Коммит
010122c988
@@ -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())
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user