ソースを参照

fix #943

tags/v2.1.0-rc1
Shivaram Lingamneni 4年前
コミット
9a6cb84b58
2個のファイルの変更2行の追加1行の削除
  1. 1
    0
      irc/accounts.go
  2. 1
    1
      irc/email/dkim.go

+ 1
- 0
irc/accounts.go ファイルの表示

@@ -724,6 +724,7 @@ func (am *AccountManager) dispatchMailtoCallback(client *Client, account string,
724 724
 	if config.DKIM.Domain != "" {
725 725
 		fmt.Fprintf(&message, "Message-ID: <%s@%s>\r\n", utils.GenerateSecretKey(), config.DKIM.Domain)
726 726
 	}
727
+	fmt.Fprintf(&message, "Date: %s\r\n", time.Now().UTC().Format(time.RFC1123Z))
727 728
 	fmt.Fprintf(&message, "Subject: %s\r\n", subject)
728 729
 	message.WriteString("\r\n") // blank line: end headers, begin message body
729 730
 	fmt.Fprintf(&message, client.t("Account: %s"), account)

+ 1
- 1
irc/email/dkim.go ファイルの表示

@@ -37,7 +37,7 @@ var defaultOptions = dkim.SigOptions{
37 37
 	Version:               1,
38 38
 	Canonicalization:      "relaxed/relaxed",
39 39
 	Algo:                  "rsa-sha256",
40
-	Headers:               []string{"from", "to", "subject", "message-id"},
40
+	Headers:               []string{"from", "to", "subject", "message-id", "date"},
41 41
 	BodyLength:            0,
42 42
 	QueryMethods:          []string{"dns/txt"},
43 43
 	AddSignatureTimestamp: true,

読み込み中…
キャンセル
保存