diff --git a/src/vmime/net/imap/IMAPFolder.cpp b/src/vmime/net/imap/IMAPFolder.cpp index 3af9225a..25b7d760 100644 --- a/src/vmime/net/imap/IMAPFolder.cpp +++ b/src/vmime/net/imap/IMAPFolder.cpp @@ -92,9 +92,6 @@ int IMAPFolder::getMode() const const folderAttributes IMAPFolder::getAttributes() { - if (!isOpen()) - throw exceptions::illegal_state("Folder not open"); - // Root folder if (m_path.isEmpty()) { diff --git a/src/vmime/net/pop3/POP3Folder.cpp b/src/vmime/net/pop3/POP3Folder.cpp index 56aeae6e..354dad2a 100644 --- a/src/vmime/net/pop3/POP3Folder.cpp +++ b/src/vmime/net/pop3/POP3Folder.cpp @@ -83,9 +83,6 @@ int POP3Folder::getMode() const const folderAttributes POP3Folder::getAttributes() { - if (!isOpen()) - throw exceptions::illegal_state("Folder not open"); - folderAttributes attribs; if (m_path.isEmpty())