This was firing continuously rather than just once per second as
intended.
notmuch_messages_has_more (messages);
notmuch_messages_advance (messages))
{
notmuch_messages_has_more (messages);
notmuch_messages_advance (messages))
{
- if (do_progress_notify)
+ if (do_progress_notify) {
progress_notify (closure, count, total);
progress_notify (closure, count, total);
+ do_progress_notify = 0;
+ }
message = notmuch_messages_get (messages);
message = notmuch_messages_get (messages);