changeset 2199:89001f106f8d HEAD

APPEND/COPY in non-selected mailbox must not remove the Recent-flag
author Timo Sirainen <tss@iki.fi>
date Sun, 20 Jun 2004 09:33:08 +0300
parents f5baee0fc85f
children 97bb7b127617
files src/imap/cmd-append.c src/imap/cmd-copy.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-append.c	Sun Jun 20 09:30:07 2004 +0300
+++ b/src/imap/cmd-append.c	Sun Jun 20 09:33:08 2004 +0300
@@ -80,7 +80,8 @@
 	    mailbox_name_equals(mailbox_get_name(client->mailbox), mailbox))
 		box = client->mailbox;
 	else {
-		box = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST);
+		box = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST |
+				   MAILBOX_OPEN_KEEP_RECENT);
 		if (box == NULL) {
 			client_send_storage_error(client, storage);
 			return TRUE;
--- a/src/imap/cmd-copy.c	Sun Jun 20 09:30:07 2004 +0300
+++ b/src/imap/cmd-copy.c	Sun Jun 20 09:33:08 2004 +0300
@@ -102,7 +102,8 @@
 	if (mailbox_name_equals(mailbox_get_name(client->mailbox), mailbox))
 		destbox = client->mailbox;
 	else {
-		destbox = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST);
+		destbox = mailbox_open(storage, mailbox, MAILBOX_OPEN_FAST |
+				       MAILBOX_OPEN_KEEP_RECENT);
 		if (destbox == NULL) {
 			client_send_storage_error(client, storage);
 			return TRUE;