From 2e47540f22aa5d0697af34dbd1eeca18c151a5fc Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 4 Mar 2023 09:22:14 +0100 Subject: [PATCH] in imapclient, when sending "astring" (atom or string), actually return the string when we need to quote it from pexarkh, issue #11 --- imapclient/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapclient/protocol.go b/imapclient/protocol.go index ab3b4f1..d6fb992 100644 --- a/imapclient/protocol.go +++ b/imapclient/protocol.go @@ -148,7 +148,7 @@ func astring(s string) string { } for _, c := range s { if c <= ' ' || c >= 0x7f || c == '(' || c == ')' || c == '{' || c == '%' || c == '*' || c == '"' || c == '\\' { - stringx(s) + return stringx(s) } } return s