From f6d6824bca215b4b1fcedd9f104d5d843c9b5393 Mon Sep 17 00:00:00 2001 From: Alexander Weinhold Date: Wed, 9 Aug 2017 22:03:38 +0200 Subject: [PATCH] trim trailing paren --- imap/imap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/imap/imap.go b/imap/imap.go index 2a2c13b..261da14 100644 --- a/imap/imap.go +++ b/imap/imap.go @@ -119,6 +119,7 @@ func fetch(c *connection, ids []int) stateFunc { c.write(cmd(fmt.Sprintf("uid fetch %d body[]", id))) if c.err == nil { s := c.read("uid fetch of " + strconv.Itoa(id)) + s = strings.TrimRight(s, ")\n") if c.err == nil { mail, err := parseMail(s) if err == nil {