trim trailing paren

This commit is contained in:
Alexander Weinhold 2017-08-09 22:03:38 +02:00
parent 7a5c19a935
commit f6d6824bca

View File

@ -119,6 +119,7 @@ func fetch(c *connection, ids []int) stateFunc {
c.write(cmd(fmt.Sprintf("uid fetch %d body[]", id))) c.write(cmd(fmt.Sprintf("uid fetch %d body[]", id)))
if c.err == nil { if c.err == nil {
s := c.read("uid fetch of " + strconv.Itoa(id)) s := c.read("uid fetch of " + strconv.Itoa(id))
s = strings.TrimRight(s, ")\n")
if c.err == nil { if c.err == nil {
mail, err := parseMail(s) mail, err := parseMail(s)
if err == nil { if err == nil {