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 }