[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.87, 1.88 index-storage.h, 1.104, 1.105

cras at dovecot.org cras at dovecot.org
Mon Aug 7 15:42:40 EEST 2006


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

Modified Files:
	index-storage.c index-storage.h 
Log Message:
Added MAILBOX_OPEN_MBOX_ONE_MSG_ONLY flag for mailbox_open() which makes it
ignore all but the first From-line in a mbox. This kludge is required for
deliver which builds a temporary mbox stream from the input. Later it
should be fixed to use some plain-mailbox format instead of mbox.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- index-storage.c	28 Jun 2006 16:31:06 -0000	1.87
+++ index-storage.c	7 Aug 2006 12:42:38 -0000	1.88
@@ -348,6 +348,7 @@
 		break;
 	}
 
+	ibox->open_flags = flags;
 	ibox->readonly = (flags & MAILBOX_OPEN_READONLY) != 0;
 	ibox->keep_recent = (flags & MAILBOX_OPEN_KEEP_RECENT) != 0;
 	ibox->keep_locked = (flags & MAILBOX_OPEN_KEEP_LOCKED) != 0;

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- index-storage.h	28 Jun 2006 16:31:06 -0000	1.104
+++ index-storage.h	7 Aug 2006 12:42:38 -0000	1.105
@@ -38,6 +38,7 @@
 struct index_mailbox {
 	struct mailbox box;
 	struct index_storage *storage;
+	enum mailbox_open_flags open_flags;
 
 	struct mail_index *index;
 	struct mail_index_view *view;



More information about the dovecot-cvs mailing list