Don't copy headers like a rube
j3s j3s@c3f.net
Tue, 19 Nov 2019 18:52:12 -0600
1 files changed,
0 insertions(+),
3 deletions(-)
jump to
M
main.go
→
main.go
@@ -363,9 +363,6 @@ newEmail.Cc = e.Cc
newEmail.Recipients = recipients newEmail.Subject = e.Subject newEmail.Text = e.Text - newEmail.Headers["Content-Transfer-Encoding"] = e.Headers["Content-Transfer-Encoding"] - newEmail.Headers["Content-Type"] = e.Headers["Content-Type"] - newEmail.Headers["Mime-Version"] = e.Headers["Mime-Version"] newEmail.Headers["Date"] = e.Headers["Date"] newEmail.Headers["Reply-To"] = []string{e.From} newEmail.Headers["Precedence"] = []string{"list"}