[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.48,1.49
cras at procontrol.fi
cras at procontrol.fi
Wed Jul 23 05:44:18 EEST 2003
- Previous message: [dovecot-cvs]
dovecot/src/imap client.h,1.15,1.16 cmd-copy.c,1.9,1.10
cmd-store.c,1.14,1.15 imap-fetch.c,1.6,1.7 imap-fetch.h,1.2,1.3
mail-storage-callbacks.c,1.6,1.7
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-fetch.c,1.48,1.49
index-mail.c,1.11,1.12 index-mail.h,1.3,1.4
index-search.c,1.76,1.77 index-storage.h,1.42,1.43
index-sync.c,1.25,1.26 index-update-flags.c,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv15228/lib-storage
Modified Files:
mail-storage.h
Log Message:
API change for updating message flags.
Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- mail-storage.h 23 Jul 2003 00:40:50 -0000 1.48
+++ mail-storage.h 23 Jul 2003 01:44:16 -0000 1.49
@@ -109,13 +109,6 @@
WORKAROUND_OUTLOOK_IDLE = 0x02
};
-struct mail_full_flags {
- enum mail_flags flags;
-
- const char **custom_flags;
- unsigned int custom_flags_count;
-};
-
struct mail_storage;
struct mail_storage_callbacks;
struct mailbox_list;
@@ -248,22 +241,13 @@
expunge callbacks. Also always does full syncing. */
int (*expunge)(struct mailbox *box, int notify);
- /* Update mail flags, calling update_flags callbacks. */
- int (*update_flags)(struct mailbox *box,
- const char *messageset, int uidset,
- const struct mail_full_flags *flags,
- enum modify_type modify_type, int notify,
- int *all_found);
-
/* Initialize new fetch request. wanted_fields isn't required, but it
- can be used for optimizations. If *update_seen is TRUE, \Seen flag
- is set for all fetched mails. *update_seen may be changed back to
- FALSE if all mails are already seen, or if it's not possible to
- change the flag (eg. read-only mailbox). */
+ can be used for optimizations. update_flags must be set to TRUE, if
+ you want to call mail->update_flags() */
struct mail_fetch_context *
(*fetch_init)(struct mailbox *box,
enum mail_fetch_field wanted_fields,
- int *update_seen,
+ int update_flags,
const char *messageset, int uidset);
/* Deinitialize fetch request. all_found is set to TRUE if all of the
fetched messages were found (ie. not just deleted). */
@@ -350,7 +334,6 @@
unsigned int seq;
unsigned int uid;
- unsigned int seen_updated:1; /* if update_seen was TRUE */
unsigned int has_nuls:1; /* message data is known to contain NULs */
unsigned int has_no_nuls:1; /* -''- known to not contain NULs */
@@ -388,6 +371,11 @@
const char *(*get_special)(struct mail *mail,
enum mail_fetch_field field);
+ /* Update message flags. */
+ int (*update_flags)(struct mail *mail,
+ const struct mail_full_flags *flags,
+ enum modify_type modify_type);
+
/* Copy this mail to another mailbox. */
int (*copy)(struct mail *mail, struct mail_copy_context *ctx);
};
@@ -428,10 +416,10 @@
void (*expunge)(struct mailbox *mailbox, unsigned int seq,
void *context);
/* FETCH FLAGS */
- void (*update_flags)(struct mailbox *mailbox, unsigned int seq,
- unsigned int uid, enum mail_flags flags,
- const char *custom_flags[],
- unsigned int custom_flags_count, void *context);
+ void (*update_flags)(struct mailbox *mailbox,
+ unsigned int seq, unsigned int uid,
+ const struct mail_full_flags *flags,
+ void *context);
/* EXISTS, RECENT */
void (*new_messages)(struct mailbox *mailbox,
- Previous message: [dovecot-cvs]
dovecot/src/imap client.h,1.15,1.16 cmd-copy.c,1.9,1.10
cmd-store.c,1.14,1.15 imap-fetch.c,1.6,1.7 imap-fetch.h,1.2,1.3
mail-storage-callbacks.c,1.6,1.7
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-fetch.c,1.48,1.49
index-mail.c,1.11,1.12 index-mail.h,1.3,1.4
index-search.c,1.76,1.77 index-storage.h,1.42,1.43
index-sync.c,1.25,1.26 index-update-flags.c,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list