[Dovecot] threaed ordered subject algorithm