Skip to content

Commit

Permalink
Fix broken comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbanham committed Jun 15, 2022
1 parent 258e0d1 commit 3c8b5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 3c8b5db

Please sign in to comment.