aboutsummaryrefslogtreecommitdiff
path: root/worker/imap/imap.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/imap.go')
-rw-r--r--worker/imap/imap.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/worker/imap/imap.go b/worker/imap/imap.go
new file mode 100644
index 0000000..28bac93
--- /dev/null
+++ b/worker/imap/imap.go
@@ -0,0 +1,13 @@
+package imap
+
+import (
+ "github.com/emersion/go-imap"
+)
+
+func toSeqSet(uids []uint32) *imap.SeqSet {
+ var set imap.SeqSet
+ for _, uid := range uids {
+ set.AddNum(uid)
+ }
+ return &set
+}