Skip to content

Commit 2c15234

Browse files
committed
imapmemserver: add stub for STATUS RECENT
Avoid crashing when RECENT is requested (which can happen since we advertise IMAP4rev1).
1 parent f1ea909 commit 2c15234

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imapserver/imapmemserver/mailbox.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func (mbox *Mailbox) statusDataLocked(options *imap.StatusOptions) *imap.StatusD
9494
size := mbox.sizeLocked()
9595
data.Size = &size
9696
}
97+
if options.NumRecent {
98+
num := uint32(0)
99+
data.NumRecent = &num
100+
}
97101
return &data
98102
}
99103

0 commit comments

Comments
 (0)