Lines Matching refs:box
49 mbox->box = cydir_mailbox;
50 mbox->box.pool = pool;
51 mbox->box.storage = storage;
52 mbox->box.list = list;
53 mbox->box.mail_vfuncs = &cydir_mail_vfuncs;
55 index_storage_mailbox_alloc(&mbox->box, vname, flags, MAIL_INDEX_PREFIX);
58 return &mbox->box;
61 static int cydir_mailbox_open(struct mailbox *box)
63 const char *box_path = mailbox_get_path(box);
69 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND,
70 T_MAIL_ERR_MAILBOX_NOT_FOUND(box->vname));
73 mailbox_set_critical(box, "%s",
77 mailbox_set_critical(box, "stat(%s) failed: %m", box_path);
80 if (index_storage_mailbox_open(box, FALSE) < 0)
82 mail_index_set_fsync_mode(box->index,
83 box->storage->set->parsed_fsync_mode,
90 cydir_mailbox_create(struct mailbox *box, const struct mailbox_update *update,
95 if ((ret = index_storage_mailbox_create(box, directory)) <= 0)
99 index_storage_mailbox_update(box, update);
102 static void cydir_notify_changes(struct mailbox *box)
104 if (box->notify_callback == NULL)
105 mailbox_watch_remove_all(box);
107 mailbox_watch_add(box, mailbox_get_path(box));