diff options
Diffstat (limited to 'worker/types')
-rw-r--r-- | worker/types/messages.go | 1 | ||||
-rw-r--r-- | worker/types/sort.go | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index 9f40b8f3..3539139a 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -78,6 +78,7 @@ type OpenDirectory struct { type FetchDirectoryContents struct { Message + SortCriteria []*SortCriterion } type SearchDirectory struct { diff --git a/worker/types/sort.go b/worker/types/sort.go new file mode 100644 index 00000000..ffbcf463 --- /dev/null +++ b/worker/types/sort.go @@ -0,0 +1,19 @@ +package types + +type SortField int + +const ( + SortArrival SortField = iota + SortCc + SortDate + SortFrom + SortRead + SortSize + SortSubject + SortTo +) + +type SortCriterion struct { + Field SortField + Reverse bool +} |