[dovecot-cvs] dovecot/src/plugins/acl acl-mailbox.c,1.1,1.2

tss-movial at dovecot.org tss-movial at dovecot.org
Tue May 9 14:57:44 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv603/plugins/acl

Modified Files:
	acl-mailbox.c 
Log Message:
Changed mailbox_save_*() API a bit: Moved the struct mail *dest_mail to
save_init() instead of being in save_finish(). This way you can request
wanted fields from the mail while it's being saved.

With maildir the message is being parsed at the same time as it's being
saved, and the results are stored into cache file.



Index: acl-mailbox.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-mailbox.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- acl-mailbox.c	27 Feb 2006 16:30:39 -0000	1.1
+++ acl-mailbox.c	9 May 2006 11:57:41 -0000	1.2
@@ -179,7 +179,7 @@
 	      enum mail_flags flags, struct mail_keywords *keywords,
 	      time_t received_date, int timezone_offset,
 	      const char *from_envelope, struct istream *input,
-	      bool want_mail, struct mail_save_context **ctx_r)
+	      struct mail *dest_mail, struct mail_save_context **ctx_r)
 {
 	struct acl_mailbox *abox = ACL_CONTEXT(t->box);
 
@@ -188,7 +188,7 @@
 
 	return abox->super.save_init(t, flags, keywords, received_date,
 				     timezone_offset, from_envelope,
-				     input, want_mail, ctx_r);
+				     input, dest_mail, ctx_r);
 }
 
 static int



More information about the dovecot-cvs mailing list