in imapclient, when sending "astring" (atom or string), actually return the string when we need to quote it

from pexarkh, issue #11
This commit is contained in:
Mechiel Lukkien 2023-03-04 09:22:14 +01:00
parent 2768f5ec16
commit 2e47540f22
No known key found for this signature in database

View file

@ -148,7 +148,7 @@ func astring(s string) string {
} }
for _, c := range s { for _, c := range s {
if c <= ' ' || c >= 0x7f || c == '(' || c == ')' || c == '{' || c == '%' || c == '*' || c == '"' || c == '\\' { if c <= ' ' || c >= 0x7f || c == '(' || c == ')' || c == '{' || c == '%' || c == '*' || c == '"' || c == '\\' {
stringx(s) return stringx(s)
} }
} }
return s return s