mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Check if folder open before uid fetch
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user