Skip to content

Commit f5c55e6

Browse files
committed
imapmemserver: fix max seq num in MailboxView.staticNumSet
1 parent c8f438d commit f5c55e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imapserver/imapmemserver/mailbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func (mbox *MailboxView) forEachLocked(numSet imap.NumSet, f func(seqNum uint32,
432432
func (mbox *MailboxView) staticNumSet(numSet imap.NumSet) {
433433
switch numSet := numSet.(type) {
434434
case imap.SeqSet:
435-
max := uint32(len(mbox.l))
435+
max := mbox.tracker.NumMessages()
436436
for i := range numSet {
437437
r := &numSet[i]
438438
staticNumRange(&r.Start, &r.Stop, max)

0 commit comments

Comments
 (0)