diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/account/sort.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/account/sort.go b/commands/account/sort.go index e9ee4a34..f8cb94c1 100644 --- a/commands/account/sort.go +++ b/commands/account/sort.go @@ -72,6 +72,12 @@ func (Sort) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("Messages still loading.") } + if c := store.Capabilities(); c != nil { + if !c.Sort { + return errors.New("Sorting is not available for this backend.") + } + } + var err error var sortCriteria []*types.SortCriterion if len(args[1:]) == 0 { |