The IMAP side of this is in another thread, I wonder if there's a race condition there or GIL is saving us from it.