[dovecot-cvs] dovecot/src/deliver deliver.c,1.20.2.6,1.20.2.7

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


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv26162/deliver

Modified Files:
      Tag: branch_1_0
	deliver.c 
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: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.20.2.6
retrieving revision 1.20.2.7
diff -u -d -r1.20.2.6 -r1.20.2.7
--- deliver.c	28 Jun 2006 20:21:42 -0000	1.20.2.6
+++ deliver.c	7 Aug 2006 12:42:18 -0000	1.20.2.7
@@ -510,7 +510,8 @@
 					   MAIL_STORAGE_LOCK_FCNTL);
 	input = create_mbox_stream(0);
 	box = mailbox_open(mbox_storage, "Dovecot Delivery Mail", input,
-			   MAILBOX_OPEN_NO_INDEX_FILES);
+			   MAILBOX_OPEN_NO_INDEX_FILES |
+			   MAILBOX_OPEN_MBOX_ONE_MSG_ONLY);
 	if (box == NULL)
 		i_fatal("Can't open delivery mail as mbox");
         if (sync_quick(box) < 0)



More information about the dovecot-cvs mailing list