aboutsummaryrefslogtreecommitdiff
path: root/worker/imap/imap.go
blob: 28bac9316a05d560dabfec708012bb971286c45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}