On an IMAP server, a message may have as many states as a client dictates to it. And to faciliate for this, I have to change the code in IMAP to first clear any states a message may have, and then set the appropriate state on the message in question, so it is the only state. I guess I'll do this, but if anyone wants to help me feel free... (libcronosII/imap.c)