]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
APPEND/COPY in non-selected mailbox must not remove the Recent-flag
authorTimo Sirainen <tss@iki.fi>
Sun, 20 Jun 2004 06:33:08 +0000 (09:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 20 Jun 2004 06:33:08 +0000 (09:33 +0300)
--HG--
branch : HEAD

src/imap/cmd-append.c
src/imap/cmd-copy.c

index 5b0ad4bc0fd271a59879674162df18e6624fb366..f87cf348336ee238bafe0ccfdaf3d16d2325086a 100644 (file)
@@ -80,7 +80,8 @@ int cmd_append(struct client *client)
            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;
index 8bd51d7d841d06bc6bdc8f5de5ee13b19025eaf2..ed51733eeae2182cf6a47a18f80459f4513ce6ac 100644 (file)
@@ -102,7 +102,8 @@ int cmd_copy(struct client *client)
        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;