[dovecot-cvs] dovecot/src/imap cmd-append.c, 1.58, 1.59 cmd-copy.c, 1.28, 1.29 cmd-select.c, 1.35, 1.36 cmd-status.c, 1.22, 1.23

cras at dovecot.org cras at dovecot.org
Tue Mar 29 16:33:10 EEST 2005


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv3658/imap

Modified Files:
	cmd-append.c cmd-copy.c cmd-select.c cmd-status.c 
Log Message:
Added input stream parameter to mailbox_open(). With mbox it now allows
opening a read-only mbox using a stream.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- cmd-append.c	24 Mar 2005 20:03:14 -0000	1.58
+++ cmd-append.c	29 Mar 2005 13:33:08 -0000	1.59
@@ -360,7 +360,7 @@
 	    mailbox_equals(cmd->client->mailbox, storage, name))
 		return cmd->client->mailbox;
 
-	box = mailbox_open(storage, name, MAILBOX_OPEN_FAST |
+	box = mailbox_open(storage, name, NULL, MAILBOX_OPEN_FAST |
 			   MAILBOX_OPEN_KEEP_RECENT);
 	if (box == NULL) {
 		client_send_storage_error(cmd, storage);

Index: cmd-copy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-copy.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- cmd-copy.c	15 Mar 2005 21:52:07 -0000	1.28
+++ cmd-copy.c	29 Mar 2005 13:33:08 -0000	1.29
@@ -74,7 +74,8 @@
 	if (mailbox_equals(client->mailbox, storage, mailbox))
 		destbox = client->mailbox;
 	else {
-		destbox = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST |
+		destbox = mailbox_open(storage, mailbox, NULL,
+				       MAILBOX_OPEN_FAST |
 				       MAILBOX_OPEN_KEEP_RECENT);
 		if (destbox == NULL) {
 			client_send_storage_error(cmd, storage);

Index: cmd-select.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-select.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- cmd-select.c	8 Feb 2005 11:16:52 -0000	1.35
+++ cmd-select.c	29 Mar 2005 13:33:08 -0000	1.36
@@ -29,7 +29,7 @@
 	if (storage == NULL)
 		return TRUE;
 
-	box = mailbox_open(storage, mailbox, !readonly ? 0 :
+	box = mailbox_open(storage, mailbox, NULL, !readonly ? 0 :
 			   (MAILBOX_OPEN_READONLY | MAILBOX_OPEN_KEEP_RECENT));
 	if (box == NULL) {
 		client_send_storage_error(cmd, storage);

Index: cmd-status.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-status.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cmd-status.c	15 Mar 2005 21:52:07 -0000	1.22
+++ cmd-status.c	29 Mar 2005 13:33:08 -0000	1.23
@@ -58,7 +58,7 @@
 		box = client->mailbox;
 	} else {
 		/* open the mailbox */
-		box = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST |
+		box = mailbox_open(storage, mailbox, NULL, MAILBOX_OPEN_FAST |
 				   MAILBOX_OPEN_READONLY |
 				   MAILBOX_OPEN_KEEP_RECENT);
 		if (box == NULL)



More information about the dovecot-cvs mailing list