From 48d6d5d227a4d55d80f9f2a74c1242cafafab7ab Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Dec 2019 17:18:17 +0100 Subject: Add session lock HTTP requests can be processed in parallel, but we only have one IMAP connection per session. Closes: https://todo.sr.ht/~sircmpwn/koushin/12 --- smtp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'smtp.go') diff --git a/smtp.go b/smtp.go index d1a37da..0ec1a92 100644 --- a/smtp.go +++ b/smtp.go @@ -2,8 +2,8 @@ package koushin import ( "fmt" - "time" "io" + "time" "github.com/emersion/go-message/mail" "github.com/emersion/go-smtp" @@ -34,10 +34,10 @@ func (s *Server) connectSMTP() (*smtp.Client, error) { } type OutgoingMessage struct { - From string - To []string + From string + To []string Subject string - Text string + Text string } func (msg *OutgoingMessage) WriteTo(w io.Writer) error { -- cgit v1.2.3-59-g8ed1b