aboutsummaryrefslogtreecommitdiff
path: root/worker/types/sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/types/sort.go')
-rw-r--r--worker/types/sort.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/worker/types/sort.go b/worker/types/sort.go
new file mode 100644
index 0000000..ffbcf46
--- /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
+}