imap: more error handling
httpd: don't handle /{ThreadID} endpoints

We can't refresh from that state anyway, so what's the point of handling
them?