go-imap icon indicating copy to clipboard operation
go-imap copied to clipboard

imapserver: Expunge is called in handleUnselect for read-only mailbox

Open foxcpp opened this issue 9 months ago • 1 comments

imapserver should track read-only state of the selected mailbox and disallow calling STORE, EXPUNGE, APPEND on it. Additionally, EXPUNGE should not be called when unselecting a read-only mailbox - currently it is impossible to tell whether EXPUNGE is called via unselect or by client (incorrectly) to return a correct error.

foxcpp avatar Mar 03 '25 10:03 foxcpp

Indeed, good point!

emersion avatar Mar 03 '25 13:03 emersion