Lines Matching refs:key
70 * in general. Attributes are just <key,value> pairs that are stored in a
71 * dict. The key is mangled according to the above rules before passed to
72 * the dict code. That is, the key already encodes whether the attribute is
81 * attribute (type, key, and flags), and how to handle getting and setting
175 #define MAILBOX_ATTRIBUTE_KEY_IS_USER_ACCESSIBLE(key) \
176 (strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT, \
178 (strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER, \
180 strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT, \
236 /* Apply this attribute to the given key and its children. */
242 const char *key; /* relative to the GUID, e.g., "comment" */
247 int (*get)(struct mailbox *box, const char *key,
250 int (*set)(struct mailbox_transaction_context *t, const char *key,
268 /* Set mailbox attribute key to value. The key should be compatible with
272 enum mail_attribute_type type, const char *key,
274 /* Delete mailbox attribute key. This is just a wrapper to
277 enum mail_attribute_type type, const char *key);
278 /* Returns value for mailbox attribute key. Returns 1 if value was returned,
281 enum mail_attribute_type type, const char *key,
286 enum mail_attribute_type type, const char *key,
294 /* Returns the attribute key or NULL if there are no more attributes. */