lib: use flags_maildir_file

It's a better name. And fix some typos.
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-24 15:48:24 +03:00
parent 2d20074b99
commit 5d37c18d7d
4 changed files with 7 additions and 10 deletions

View File

@ -144,7 +144,6 @@ constexpr std::array<MessageFlagInfo, 14> AllMessageFlagInfos = {{
MessageFlagInfo{Flags::HasAttachment,'a', "attach", MessageFlagCategory::Content,
"Has at least one attachment"
},
MessageFlagInfo{Flags::Unread, 'u', "unread", MessageFlagCategory::Pseudo,
"New or not seen message"
},
@ -289,9 +288,9 @@ flags_from_absolute_expr(std::string_view expr, bool ignore_invalid = false)
* @param expr delta expression
* @param flags existing flags
* @param ignore_invalid if @true, ignore invalid flags, otherwise return
* nullopt if an invalid flag is encountered
* Nothing if an invalid flag is encountered
*
* @return new flags, or nullopt in case of error
* @return new flags, or Nothing in case of error
*/
constexpr Option<Flags>
flags_from_delta_expr(std::string_view expr, Flags flags,
@ -317,7 +316,6 @@ flags_from_delta_expr(std::string_view expr, Flags flags,
}
return imply_unread(flags);
}
/**
@ -366,7 +364,7 @@ flags_filter(Flags flags, MessageFlagCategory cat)
* @return filtered flags
*/
constexpr Flags
flags_mail_dir_file(Flags flags)
flags_maildir_file(Flags flags)
{
for (auto&& info : AllMessageFlagInfos)
if (info.category != MessageFlagCategory::Maildir &&