diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-03 18:11:33 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-07-04 22:20:24 -0400 |
commit | dccdea1e026edc2bc9c5dc27604e85ce333d65bc (patch) | |
tree | abc531253bbf4571290d8729f039e2cf28afc4d8 /worker/types/messages.go | |
parent | 91529df0fecc68d5b0fdbb682529ee545884e7c5 (diff) |
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/types/messages.go')
-rw-r--r-- | worker/types/messages.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index 7eac896..3d2bd05 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -94,12 +94,12 @@ type CreateDirectory struct { type FetchMessageHeaders struct { Message - Uids imap.SeqSet + Uids []uint32 } type FetchFullMessages struct { Message - Uids imap.SeqSet + Uids []uint32 } type FetchMessageBodyPart struct { @@ -110,20 +110,20 @@ type FetchMessageBodyPart struct { type DeleteMessages struct { Message - Uids imap.SeqSet + Uids []uint32 } // Marks messages as read or unread type ReadMessages struct { Message Read bool - Uids imap.SeqSet + Uids []uint32 } type CopyMessages struct { Message Destination string - Uids imap.SeqSet + Uids []uint32 } type AppendMessage struct { |