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 d87acce commit 88a9773
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 @@ -454,7 +454,7 @@ func (mbox *MailboxView) staticNumSet(numSet imap.NumSet) imap.NumSet {

switch numSet := numSet.(type) {
case imap.SeqSet:
max := uint32(len(mbox.l))
max := mbox.tracker.EncodeNumMessages()
for i := range numSet {
r := &numSet[i]
staticNumRange(&r.Start, &r.Stop, max)
Expand Down

0 comments on commit 88a9773

Please sign in to comment.