On 6.12.2013, at 15.33, email-from-bobby
A negated subject search on an empty folder causes an assertion failure in doveadm. To reproduce:
bash-3.2# doveadm mailbox create -u ephraim "Freshly Empty" bash-3.2# doveadm search -u ephraim mailbox "Freshly Empty" NOT subject '***JUNK MAIL***' doveadm(ephraim): Panic: file mail-index-map.c: line 548 (mail_index_map_lookup_seq_range): assertion failed: (first_uid <= last_uid\ )
Fixed: http://hg.dovecot.org/dovecot-2.2/rev/d837bd49ddee
bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/sbin/dovecotd -n # 2.2.5: /Library/Server/Mail/Config/dovecot/dovecot.conf
But note that if you build Dovecot yourself, you lose several Apple-patched functionality, at least unless you add the patches yourself (AFAIK not yet publicly available).