diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-07 22:43:57 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-08 16:06:26 -0400 |
commit | 88c379dcbaaf9fd549cd271817e79fe634b1dd84 (patch) | |
tree | 5b12c811aa5a96ebe8debc1cb4067e32ea237698 /worker/imap/movecopy.go | |
parent | cce7cb48081ca090ac2d3a0e781dfbc25d581946 (diff) | |
download | aerc-88c379dcbaaf9fd549cd271817e79fe634b1dd84.tar.gz |
Use []uint32 instead of imap.SeqSet
A sequence-set is an IMAP-specific implementation detail. Throughout the UI, aerc simply operates using lists of opaque identifiers. In order to loosen the coupling between the UI and IMAP in particular, replace most usages of imap.SeqSet with []uint32, leaving the translation to a SeqSet to the IMAP backend as needed.
Diffstat (limited to 'worker/imap/movecopy.go')
-rw-r--r-- | worker/imap/movecopy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/imap/movecopy.go b/worker/imap/movecopy.go index 6cf3fe1..b01dab7 100644 --- a/worker/imap/movecopy.go +++ b/worker/imap/movecopy.go @@ -7,7 +7,8 @@ import ( ) func (imapw *IMAPWorker) handleCopyMessages(msg *types.CopyMessages) { - if err := imapw.client.UidCopy(&msg.Uids, msg.Destination); err != nil { + uids := toSeqSet(msg.Uids) + if err := imapw.client.UidCopy(uids, msg.Destination); err != nil { imapw.worker.PostMessage(&types.Error{ Message: types.RespondTo(msg), Error: err, |