make the imap thread extension work
avoid sending bare linefeeds along with overlong message-ids
there's no need to =?...?= when the client speaks eai
recycle thread identifiers

it's not enough to release threads properly, we also have to release
thread identifiers. if we ever run out of identifiers, the server has to
stop.