Lines Matching refs:box
9 subscribe_is_valid_name(struct client_command_context *cmd, struct mailbox *box)
14 if ((ret = mailbox_exists(box, TRUE, &existence)) < 0) {
15 client_send_box_error(cmd, box);
21 mailbox_get_vname(box)));
37 struct mailbox *box, *box2;
51 box = mailbox_alloc(ns->list, mailbox, 0);
52 mailbox_set_reason(box, subscribe ? "SUBSCRIBE" : "UNSUBSCRIBE");
54 if (!subscribe_is_valid_name(cmd, box)) {
55 mailbox_free(&box);
65 /* try to unsubscribe both "box" and "box/" */
74 if (mailbox_set_subscribed(box, subscribe) < 0 &&
76 client_send_box_error(cmd, box);
82 mailbox_free(&box);