trim trailing paren
This commit is contained in:
parent
7a5c19a935
commit
f6d6824bca
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user