14 lines
186 B
Go
14 lines
186 B
Go
|
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
|
||
|
}
|