We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c6f79 commit 1564865Copy full SHA for 1564865
1 file changed
imap/idle.go
@@ -3,6 +3,7 @@ package imap
3
import (
4
"io"
5
"net/textproto"
6
+ "strings"
7
)
8
9
type UpdateWriter interface {
@@ -39,7 +40,7 @@ func (c *conn) handleIdle(tag string) error {
39
40
return err
41
}
42
- if line != "DONE" {
43
+ if strings.ToUpper(line) != "DONE" {
44
return c.writeResponse(tag, &response{
45
status: bad,
46
text: "Expected DONE to end IDLE",
0 commit comments