Skip to content

Commit 95d2002

Browse files
committed
announce support for namespace extension in imap capabilities line
we already implemented it as part of imap4rev2, but older clients need to be told we implement it.
1 parent a458920 commit 95d2002

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imapserver/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,13 @@ var authFailDelay = time.Second // After authentication failure.
161161
// METADATA: ../rfc/5464
162162
// SAVEDATE: ../rfc/8514
163163
// WITHIN: ../rfc/5032
164+
// NAMESPACE: ../rfc/2342
164165
//
165166
// We always announce support for SCRAM PLUS-variants, also on connections without
166167
// TLS. The client should not be selecting PLUS variants on non-TLS connections,
167168
// instead opting to do the bare SCRAM variant without indicating the server claims
168169
// to support the PLUS variant (skipping the server downgrade detection check).
169-
const serverCapabilities = "IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE CREATE-SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE QUOTA QUOTA=RES-STORAGE METADATA SAVEDATE WITHIN"
170+
const serverCapabilities = "IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE CREATE-SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE QUOTA QUOTA=RES-STORAGE METADATA SAVEDATE WITHIN NAMESPACE"
170171

171172
type conn struct {
172173
cid int64

0 commit comments

Comments
 (0)