Skip to content

Commit

Permalink
imapmemserver: fix max seq num in MailboxView.staticNumSet
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jan 23, 2024
1 parent c8f438d commit f5c55e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imapserver/imapmemserver/mailbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (mbox *MailboxView) forEachLocked(numSet imap.NumSet, f func(seqNum uint32,
func (mbox *MailboxView) staticNumSet(numSet imap.NumSet) {
switch numSet := numSet.(type) {
case imap.SeqSet:
max := uint32(len(mbox.l))
max := mbox.tracker.NumMessages()
for i := range numSet {
r := &numSet[i]
staticNumRange(&r.Start, &r.Stop, max)
Expand Down

0 comments on commit f5c55e6

Please sign in to comment.