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

@ -198,6 +198,14 @@ Message::set_maildir(const std::string& maildir)
return Ok();
}
void
Message::set_flags(Flags flags)
{
priv_->doc.add(flags);
}
bool
Message::load_mime_message(bool reload) const
{