This is mainly useful with imaptest test scripts to make sure they're seeing
the changes done by the other session, without assuming that inotify will
always notify about the change before NOOP is run (it doesn't).
Do this only if mailbox_idle_check_interval>0, so it's not run when periodic
stat()s are wanted to be avoided.
struct mailbox_list_notify_index *inotify =
(struct mailbox_list_notify_index *)notify;
+ if (inotify->to_notify == NULL &&
+ notify->list->mail_set->mailbox_idle_check_interval > 0) {
+ /* no pending notification - check if anything had changed */
+ notify_callback(inotify);
+ }
if (inotify->to_notify != NULL)
notify_now_callback(inotify);
}