modern-email / defects

Collection of real-world email defects
MIT License
6 stars 1 forks source link

Standalone `CAPABILITY` response #18

Open emersion opened 5 months ago

emersion commented 5 months ago

See https://github.com/emersion/go-imap/issues/561

GMail does this:

T2 LOGIN "diana@example.com" "password"
* CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST UIDPLUS ENABLE ID IDLE MOVE
T2 OK LOGIN Completed.

Instead of this:

T2 LOGIN "diana@example.com" "password"
T2 OK [CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST UIDPLUS ENABLE ID IDLE MOVE] LOGIN Completed.

This behavior is problematic because the RFC says that once a LOGIN command has completed, the cached capabilities must be cleared by the client.

Offending implementation: imap.gmail.com