Opened 6 years ago

Last modified 6 years ago

#6307 defect new

imap capabilities in server greeting

Reported by: jjyao Owned by:
Priority: normal Milestone:
Component: mail Keywords:
Cc: Branch:
Author:

Description (last modified by Jean-Paul Calderone)

According to imap rfc 3501, imap server may announce capabilities in server greeting. Now Twisted handles this situation in response_UNAUTH method. It finds the capabilities in server greeting by searching square brackets. However, not everything in square brackets are capabilities, so current method is buggy. For example, imap server imap.163.com has server greeting like this:

* OK Coremail System IMap Server Ready(163com[8db726ec93e9d4e3e9a2fd3d31b05251])

and Twisted can't handle this correctly. Imap server may also has server greeting:

* OK [ALERT] System shutdown in 10 minutes

according to rfc 3501, which can't be handled correctly either.

Change History (1)

comment:1 Changed 6 years ago by Jean-Paul Calderone

Description: modified (diff)
Note: See TracTickets for help on using tickets.