You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raw1:= []byte("Received: from mx1.google.com\r\nFrom: sender@example.com\r\nSubject: Meeting\r\nDate: Mon, 1 Jan 2024 12:00:00 +0000\r\n\r\nLet's meet at 3pm.")
85
+
raw2:= []byte("Received: from mx2.google.com\r\nDelivered-To: other@example.com\r\nFrom: sender@example.com\r\nSubject: Meeting\r\nDate: Mon, 1 Jan 2024 12:00:00 +0000\r\n\r\nLet's meet at 3pm.")
86
+
87
+
hash1:=sha256Hex(normalizeRawMIME(raw1))
88
+
hash2:=sha256Hex(normalizeRawMIME(raw2))
89
+
ifhash1!=hash2 {
90
+
t.Errorf("same message with different transport headers produced different hashes")
0 commit comments