Implemented support for the IMAP THREAD extension