message/flags: add flags_from_path

Borrow from mu-maildir, to which we cannot link.
This commit is contained in:
Dirk-Jan C. Binnema
2022-03-28 22:14:05 +03:00
parent 27ebfb3b3c
commit 9f062ae482
3 changed files with 99 additions and 3 deletions

View File

@ -305,8 +305,7 @@ base_message_dir_file(const std::string& path)
return Ok(DirFile{std::move(mdir), std::move(bname), is_new});
}
// refactor: we have the same code in mu-flags.cc
Mu::Result<Mu::Flags>
Mu::mu_maildir_flags_from_path(const std::string& path)