message/document: allow updating flags

Some flags (such as 'personal') can only be set just before storing; so allow
for update the flags.
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-01 11:14:54 +03:00
parent fea596ae3b
commit a4f39819ee
3 changed files with 26 additions and 2 deletions

View File

@ -251,6 +251,16 @@ public:
*/
Flags flags() const { return document().flags_value(); }
/**
* Update the flags for this message. This is useful for flags
* that can only be determined after the message has been created already,
* such as the 'personal' flag.
*
* @param flags new flags.
*/
void set_flags(Flags flags);
/**
* get the message priority for this message. The X-Priority, X-MSMailPriority,
* Importance and Precedence header are checked, in that order. if no known or