[dovecot-cvs] dovecot/src/lib-storage mail-storage-private.h, 1.26, 1.27 mail-storage.h, 1.108, 1.109 mail.c, 1.4, 1.5

tss-movial at dovecot.org tss-movial at dovecot.org
Tue May 16 12:10:30 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv9938

Modified Files:
	mail-storage-private.h mail-storage.h mail.c 
Log Message:
Added mail_set_uid() to select a mail by UID.



Index: mail-storage-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage-private.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- mail-storage-private.h	9 May 2006 11:57:36 -0000	1.26
+++ mail-storage-private.h	16 May 2006 09:10:27 -0000	1.27
@@ -175,6 +175,7 @@
 struct mail_vfuncs {
 	void (*free)(struct mail *mail);
 	int (*set_seq)(struct mail *mail, uint32_t seq);
+	int (*set_uid)(struct mail *mail, uint32_t uid);
 
 	enum mail_flags (*get_flags)(struct mail *mail);
 	const char *const *(*get_keywords)(struct mail *mail);

Index: mail-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- mail-storage.h	9 May 2006 11:57:36 -0000	1.108
+++ mail-storage.h	16 May 2006 09:10:27 -0000	1.109
@@ -441,6 +441,7 @@
 			struct mailbox_header_lookup_ctx *wanted_headers);
 void mail_free(struct mail **mail);
 int mail_set_seq(struct mail *mail, uint32_t seq);
+int mail_set_uid(struct mail *mail, uint32_t uid);
 
 /* Get the time message was received (IMAP INTERNALDATE).
    Returns (time_t)-1 if error occurred. */

Index: mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mail.c	14 Jan 2006 18:47:41 -0000	1.4
+++ mail.c	16 May 2006 09:10:27 -0000	1.5
@@ -26,6 +26,13 @@
 	return p->v.set_seq(mail, seq);
 }
 
+int mail_set_uid(struct mail *mail, uint32_t uid)
+{
+	struct mail_private *p = (struct mail_private *)mail;
+
+	return p->v.set_uid(mail, uid);
+}
+
 enum mail_flags mail_get_flags(struct mail *mail)
 {
 	struct mail_private *p = (struct mail_private *)mail;



More information about the dovecot-cvs mailing list