]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Add struct mailbox_status.flags
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 28 Jan 2017 23:06:55 +0000 (01:06 +0200)
committerGitLab <gitlab@git.dovecot.net>
Sun, 29 Jan 2017 18:02:37 +0000 (20:02 +0200)
This is similar to permanent_flags, except it tells which flags can be
changed at all in the session. Mainly it allows plugins to make changes to
IMAP's untagged FLAGS reply.

src/lib-storage/index/index-status.c
src/lib-storage/mail-storage.h

index d186f2849f6414611ccc00034e8c0e38b7302c6a..70dd2ab596279521c32b85cd660aa41ed429f076 100644 (file)
@@ -185,6 +185,7 @@ void index_storage_get_open_status(struct mailbox *box,
                        status_r->allow_new_keywords =
                                !box->disallow_new_keywords;
                }
+               status_r->flags = MAIL_FLAGS_NONRECENT;
        }
 }
 
index b329b314cf1513fbecd6476058527b65e0730f56..c0fec6f9a98fc36e119307022fdff3d97aaef923 100644 (file)
@@ -258,6 +258,8 @@ struct mailbox_status {
 
        /* These flags can be permanently modified (STATUS_PERMANENT_FLAGS) */
        enum mail_flags permanent_flags;
+       /* These flags can be modified (STATUS_PERMANENT_FLAGS) */
+       enum mail_flags flags;
 
        /* All keywords can be permanently modified (STATUS_PERMANENT_FLAGS) */
        bool permanent_keywords:1;