Format code
j3s j3s@cyberia.club
Sun, 24 Nov 2019 13:11:49 -0600
2 files changed,
4 insertions(+),
4 deletions(-)
M
mail/main.go
→
mail/main.go
@@ -442,7 +442,7 @@ fmt.Fprintf(&buf, "From: %s\r\n", sepAddrs(e.From))
fmt.Fprintf(&buf, "To: %s\r\n", sepAddrs(e.To)) fmt.Fprintf(&buf, "Cc: %s\r\n", sepAddrs(e.Cc)) fmt.Fprintf(&buf, "Reply-To: %s\r\n", sepAddrs(e.ReplyTo)) - if ! e.Date.IsZero() { + if !e.Date.IsZero() { fmt.Fprintf(&buf, "Date: %s\r\n", e.Date) } if len(e.MessageID) > 0 {
M
main.go
→
main.go
@@ -348,9 +348,9 @@
func send(e *parsemail.Email) { // Bcc = recipients var recipients []string - for _, a := range e.Bcc { - recipients = append(recipients, a.Address) - } + for _, a := range e.Bcc { + recipients = append(recipients, a.Address) + } auth := smtp.PlainAuth("", gConfig.SMTPUsername, gConfig.SMTPPassword, "mail.c3f.net") smtp.SendMail("mail.c3f.net:587", auth, e.Sender.Address, recipients, e.ToBytes())