IMAPServer panics are raised by the IMAP server-side MTM. They are used to signal errors in the implementation of the MTM, and are raised in debug builds. The panic codes are divided into a number of ranges, each of which relates to a particular area of functionality in the MTM:
0-999
Session logic, which relates to the set up and management of an individual session to an IMAP server
1000 - 1999
IMAP settings loading and storage
2000 - 2999
Server MTM class implementation
3000 - 3999
Character set conversion
4000 - 4999
Storage and manipulation of messages
5000 - 5999
Controlling logic for handling client commands
6000 - 6999
Transport handler, which handles reading and writing of data to connected sockets
7000 - 7999
Synchronisation manager, which handles the synchronisation of mailbox folders between the locally persisted mailbox store and a remote mailbox store
8000 - 8999
Server MTM class