Skip to content

Commit

Permalink
lib-storage: Add struct mailbox_status.flags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sirainen authored and GitLab committed Jan 29, 2017
1 parent 1f1a967 commit 4945c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-storage/index/index-status.c
Expand Up @@ -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;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib-storage/mail-storage.h
Expand Up @@ -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;
Expand Down

0 comments on commit 4945c8a

Please sign in to comment.