Lines Matching refs:iattr
45 const struct mailbox_attribute_internal *iattr)
51 iattr, mailbox_attribute_internal_cmp, &insert_idx);
53 ireg = *iattr;
54 ireg.key = p_strdup(mailbox_attribute_pool, iattr->key);
68 const struct mailbox_attribute_internal *iattr)
73 iattr, mailbox_attribute_internal_cmp, &idx)) {
75 "key not found", iattr->key);
94 const struct mailbox_attribute_internal *iattr;
112 iattr = array_idx(&mailbox_internal_attributes, insert_idx-1);
113 if (strncmp(iattr->key, key, strlen(iattr->key)) != 0) {
114 /* iattr isn't a prefix of key */
116 } else if ((iattr->flags & MAIL_ATTRIBUTE_INTERNAL_FLAG_CHILDREN) != 0) {
117 /* iattr is a prefix of key and it wants to handle the key */
118 return iattr;
183 const struct mailbox_attribute_internal *iattr;
186 iattr = mailbox_internal_attribute_get(type, key);
189 if (iattr != NULL && !t->box->inbox_any &&
192 iattr = NULL;
195 if (iattr != NULL) {
196 switch (iattr->rank) {
200 if (iattr->set != NULL && iattr->set(t, key, value) < 0)
204 if (iattr->set == NULL) {
211 return iattr->set(t, key, value);
276 const struct mailbox_attribute_internal *iattr;
279 iattr = mailbox_internal_attribute_get(type, key);
282 if (iattr != NULL && !box->inbox_user &&
285 iattr = NULL;
288 if (iattr != NULL) {
289 switch (iattr->rank) {
291 if ((ret = iattr->get(box, key, value_r)) != 0) {
301 if ((ret = iattr->get(box, key, value_r)) <= 0)
315 if (iattr != NULL) {
316 switch (iattr->rank) {
318 if (iattr->get == NULL)
321 if ((ret = iattr->get(box, key, value_r)) < 0)