comparison src/imap/commands-util.h @ 7057:81f4c9689c18 HEAD

FLAGS/PERMENENTFLAGS weren't always sent to client early enough. Also optimized sending keywords with FETCH FLAGS.
author Timo Sirainen <tss@iki.fi>
date Sat, 29 Dec 2007 07:11:12 +0200
parents e4eb71ae8e96
children 81806d402514
comparison
equal deleted inserted replaced
7056:097c70cfa55e 7057:81f4c9689c18
48 bool client_parse_mail_flags(struct client_command_context *cmd, 48 bool client_parse_mail_flags(struct client_command_context *cmd,
49 const struct imap_arg *args, 49 const struct imap_arg *args,
50 enum mail_flags *flags_r, 50 enum mail_flags *flags_r,
51 const char *const **keywords_r); 51 const char *const **keywords_r);
52 52
53 /* Send FLAGS + PERMANENTFLAGS to client. */ 53 /* Send FLAGS + PERMANENTFLAGS to client if they have changed,
54 void client_send_mailbox_flags(struct client *client, struct mailbox *box, 54 or if selecting=TRUE. */
55 const ARRAY_TYPE(keywords) *keywords); 55 void client_send_mailbox_flags(struct client *client, bool selecting);
56 56 /* Update client->keywords array. Use keywords=NULL when unselecting. */
57 /* Copy keywords into dest. dest must have been initialized. Returns TRUE if 57 void client_update_mailbox_flags(struct client *client,
58 keywords changed. */ 58 const ARRAY_TYPE(keywords) *keywords);
59 bool client_save_keywords(struct mailbox_keywords *dest, 59 /* Convert keyword indexes to keyword names in selected mailbox. */
60 const ARRAY_TYPE(keywords) *keywords); 60 const char *const *
61 client_get_keyword_names(struct client *client, ARRAY_TYPE(keywords) *dest,
62 const ARRAY_TYPE(keyword_indexes) *src);
61 63
62 bool mailbox_equals(struct mailbox *box1, struct mail_storage *storage2, 64 bool mailbox_equals(struct mailbox *box1, struct mail_storage *storage2,
63 const char *name2); 65 const char *name2);
64 66
65 void msgset_generator_init(struct msgset_generator_context *ctx, string_t *str); 67 void msgset_generator_init(struct msgset_generator_context *ctx, string_t *str);