From 5bbfd79195638d4c669db8adcb3c70351226edff Mon Sep 17 00:00:00 2001 From: Daniil Sliusar Date: Fri, 10 Jan 2020 12:26:21 +0300 Subject: [PATCH] Delete quotes to prevent worng names in From --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 246f781..473378d 100644 --- a/main.go +++ b/main.go @@ -60,7 +60,7 @@ func callSendmailMutt(req mailReq) error { var c1 = exec.Command("echo", "-e", req.Body) var c2 = exec.Command("mutt", args...) c2.Env = os.Environ() - c2.Env = append(c2.Env, fmt.Sprintf("EMAIL='%s'", req.From)) + c2.Env = append(c2.Env, fmt.Sprintf("EMAIL=%s", req.From)) c2.Stdin, _ = c1.StdoutPipe() c2.Stdout = os.Stdout _ = c2.Start()