瀏覽代碼

Set Message-Id header

master
Jesse Olson 3 年之前
committed by Simon Ser
父節點
當前提交
456d183ebc
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: FDE7BE0E88F5E48
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      plugins/base/smtp.go

+ 2
- 1
plugins/base/smtp.go 查看文件

@@ -138,7 +138,8 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error {
if msg.InReplyTo != "" {
h.Set("In-Reply-To", msg.InReplyTo)
}
// TODO: set Message-ID

h.Set("Message-Id", mail.GenerateMessageID())

mw, err := mail.CreateWriter(w, h)
if err != nil {


Loading…
取消
儲存