7e2671b295927b461adc8b6c4ed6a1c4761fb323Timo Sirainenvoid mailbox_watch_add(struct mailbox *box, const char *path);
7e2671b295927b461adc8b6c4ed6a1c4761fb323Timo Sirainenvoid mailbox_watch_remove_all(struct mailbox *box);
179d6dfa02211b7508238bd017f0ec4297011d95Timo Sirainen/* Create a new temporary ioloop, add all the watches back and call
179d6dfa02211b7508238bd017f0ec4297011d95Timo Sirainen io_loop_extract_notify_fd() on it. Returns fd on success, -1 on error. */
179d6dfa02211b7508238bd017f0ec4297011d95Timo Sirainenint mailbox_watch_extract_notify_fd(struct mailbox *box, const char **reason_r);