90d26da58a
There is a command and config option. The criteria are a list of the sort criterion and each can be individually reversed. This only includes support for sorting in the maildir backend currently. The other backends are not supported in this patch.
20 lines
208 B
Go
20 lines
208 B
Go
package types
|
|
|
|
type SortField int
|
|
|
|
const (
|
|
SortArrival SortField = iota
|
|
SortCc
|
|
SortDate
|
|
SortFrom
|
|
SortRead
|
|
SortSize
|
|
SortSubject
|
|
SortTo
|
|
)
|
|
|
|
type SortCriterion struct {
|
|
Field SortField
|
|
Reverse bool
|
|
}
|