diff --git a/internal/state/actions.go b/internal/state/actions.go index 78c2384e..241da866 100644 --- a/internal/state/actions.go +++ b/internal/state/actions.go @@ -402,7 +402,7 @@ func (state *State) actionRemoveMessageFlags( } func (state *State) actionSetMessageFlags(ctx context.Context, tx *ent.Tx, messages []snapMsgWithSeq, setFlags imap.FlagSet) error { - if setFlags.ContainsUnchecked(imap.FlagSeenLowerCase) { + if setFlags.ContainsUnchecked(imap.FlagRecentLowerCase) { return fmt.Errorf("recent flag is read-only") }