Lines Matching defs:notify

9 #include "mailbox-list-notify.h"
10 #include "mailbox-list-notify-tree.h"
36 struct mailbox_list_notify notify;
112 inotify->inbox = mailbox_alloc(inotify->notify.list, "INBOX",
138 inotify->notify.list = list;
139 inotify->notify.mask = mask;
170 *notify_r = &inotify->notify;
174 void mailbox_list_index_notify_deinit(struct mailbox_list_notify *notify)
177 (struct mailbox_list_notify_index *)notify;
212 INDEX_LIST_CONTEXT_REQUIRE(inotify->notify.list);
223 (void)mailbox_list_index_parse(inotify->notify.list,
233 (void)mailbox_list_index_status(inotify->notify.list, view, seq,
257 mailbox_list_index_notify_wait(&inotify->notify, NULL, NULL);
281 struct mailbox_list_notify *notify = &inotify->notify;
288 if ((notify->mask & MAILBOX_LIST_NOTIFY_UIDVALIDITY) == 0)
293 if ((notify->mask & MAILBOX_LIST_NOTIFY_STATUS) == 0)
300 if ((notify->mask & MAILBOX_LIST_NOTIFY_MODSEQ_CHANGES) == 0)
313 struct mailbox_list_notify *notify = &inotify->notify;
314 struct mailbox_list_index *ilist = INDEX_LIST_CONTEXT_REQUIRE(notify->list);
333 if ((notify->mask & (MAILBOX_LIST_NOTIFY_CREATE |
346 if ((notify->mask & (MAILBOX_LIST_NOTIFY_DELETE |
464 (void)mailbox_list_index_parse(inotify->notify.list,
506 if (mailbox_list_iter_subscriptions_refresh(inotify->notify.list) < 0)
508 mailbox_tree_sort(inotify->notify.list->subscriptions);
511 new_tree = mailbox_tree_dup(inotify->notify.list->subscriptions);
632 char ns_sep = mailbox_list_get_hierarchy_sep(inotify->notify.list);
646 rec->vname = mailbox_list_get_vname(inotify->notify.list,
689 rec->storage_name = mailbox_list_get_storage_name(inotify->notify.list,
705 rec->storage_name = mailbox_list_get_storage_name(inotify->notify.list,
818 i_error("Mailbox list index notify: Failed to sync INBOX: %s",
828 int mailbox_list_index_notify_next(struct mailbox_list_notify *notify,
832 (struct mailbox_list_notify_index *)notify;
836 if (mailbox_list_index_handle_corruption(notify->list) < 0)
840 if ((inotify->notify_rec.events & inotify->notify.mask) != 0) {
916 void mailbox_list_index_notify_wait(struct mailbox_list_notify *notify,
921 (struct mailbox_list_notify_index *)notify;
944 check_interval = notify->list->mail_set->mailbox_idle_check_interval;
952 void mailbox_list_index_notify_flush(struct mailbox_list_notify *notify)
955 (struct mailbox_list_notify_index *)notify;
958 notify->list->mail_set->mailbox_idle_check_interval > 0) {