diff options
Diffstat (limited to 'worker/imap/seqmap.go')
-rw-r--r-- | worker/imap/seqmap.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/imap/seqmap.go b/worker/imap/seqmap.go index 3558fe48..4a845865 100644 --- a/worker/imap/seqmap.go +++ b/worker/imap/seqmap.go @@ -14,7 +14,8 @@ type SeqMap struct { // Initialize sets the initial seqmap of the mailbox func (s *SeqMap) Initialize(uids []uint32) { s.lock.Lock() - s.m = uids + s.m = make([]uint32, len(uids)) + copy(s.m, uids) s.sort() s.lock.Unlock() } |