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 {