When throwing don't call method that might open an IMAP connection

This commit is contained in:
cketti 2024-04-25 21:42:37 +02:00
parent 6b54e8b65b
commit 874b06f415

View file

@ -1155,7 +1155,7 @@ internal class RealImapFolder(
@Throws(MessagingException::class)
private fun checkOpen() {
if (!isOpen) {
throw MessagingException("Folder $prefixedName is not open.")
throw MessagingException("Folder $serverId is not open.")
}
}