Sort index: Handle reset_id growing while adding non-wanted messages to sort list.
Sort index: Handle reset_id growing while adding non-wanted messages to sort
list.

--HG--
branch : HEAD

jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch