Check if folder open before uid fetch

pull/160/head
M66B 5 years ago
parent f74c4c460f
commit bcb165db59

@ -1112,6 +1112,8 @@ class Core {
if (uids.size() > 0) {
// This is done outside of JavaMail to prevent changed notifications
if (!ifolder.isOpen())
throw new FolderClosedException(ifolder, "UID FETCH");
MessagingException ex = (MessagingException) ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
@Override
public Object doCommand(IMAPProtocol protocol) {

Loading…
Cancel
Save