From 3c8b5dbad2e4dd1d883eb6a80dce670684197a68 Mon Sep 17 00:00:00 2001 From: David Banham Date: Wed, 15 Jun 2022 03:16:23 +0000 Subject: [PATCH] Fix broken comparison --- mime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mime.go b/mime.go index 83b3555..f440524 100644 --- a/mime.go +++ b/mime.go @@ -97,7 +97,7 @@ func (email Email) WriteMime(dest io.Writer) error { dest.Write([]byte("From: " + email.From + "\r\n")) dest.Write([]byte("To: " + email.To + "\r\n")) if email.ReturnPath != "" { - if email.ReturnPath[0] == "<" { + if string(email.ReturnPath[0]) == "<" { dest.Write([]byte("Return-Path: " + email.ReturnPath + "\r\n")) } else { dest.Write([]byte("Return-Path: <" + email.ReturnPath + ">\r\n"))