]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lazy-expunge: Open mailbox with MAILBOX_FLAG_SAVEONLY flag.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 27 Apr 2016 20:47:09 +0000 (23:47 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 27 Apr 2016 20:47:09 +0000 (23:47 +0300)
src/plugins/lazy-expunge/lazy-expunge-plugin.c

index 8a357d79ce751dbe909633cdb4c248ced012ad22..89491d71a4a282621588eaa4811aad2c9387f46c 100644 (file)
@@ -109,7 +109,8 @@ mailbox_open_or_create(struct mailbox_list *list, struct mailbox *src_box,
 
        name = get_dest_vname(list, src_box);
 
-       box = mailbox_alloc(list, name, MAILBOX_FLAG_NO_INDEX_FILES);
+       box = mailbox_alloc(list, name, MAILBOX_FLAG_NO_INDEX_FILES |
+                           MAILBOX_FLAG_SAVEONLY);
        if (mailbox_open(box) == 0) {
                *error_r = NULL;
                return box;