don't trim too much
* I hate IMAP.
This commit is contained in:
parent
c64feb082d
commit
e20e862889
|
@ -120,8 +120,8 @@ func fetch(c *connection, ids []int) stateFunc {
|
|||
c.write(cmd(fmt.Sprintf("uid fetch %d body[]", id)))
|
||||
if len(c.err) == nErrs {
|
||||
s := c.read("uid fetch of " + strconv.Itoa(id))
|
||||
s = strings.TrimRight(s, ")\r\n")
|
||||
if len(c.err) == nErrs {
|
||||
s = strings.TrimSuffix(strings.TrimSpace(s), ")")
|
||||
mail, err := parseMail(s)
|
||||
if err == nil {
|
||||
c.unreadMails = append(c.unreadMails, mail)
|
||||
|
|
Loading…
Reference in New Issue
Block a user